Define variables before mentioning them in scripted component tests, and add a linter rule for this.
Patch By: Krinkle
Differential Revision: https://code.wildfiregames.com/D1986
|Itms||Jun 16 2019, 10:48 PM|
|Build 12996: Post-Commit Build||Jenkins|
(only pos variable was necessary, but keeping them grouped is okay)
Agree that it is a benefitial pattern to define variables before referencing to them, that's one of the major purposes of the let keyword over var. refs https://eslint.org/docs/rules/no-use-before-define