You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disallows repeating boilerplate options like { parserOptions: { ecmaVersion: 6 } } in rule tests, in favor of specifying defaults in the RuleTester constructor instead.
How many identical uses of parserOptions should the rule need to detect in order to report an error? (2? Some percentage of the total number of test cases? All of the test cases?)
Should the rule reason about maximum ecmaVersion? (For example, if some tests have ecmaVersion: 6 and others have ecmaVersion: 7, should the rule conclude that the user can put ecmaVersion: 7 in the constructor?)
Aside from parserOptions, what other duplicate options should the rule report? Should it report RuleTester-specific options such as errors? Should it report all configuration options (e.g. env)?
The text was updated successfully, but these errors were encountered:
Disallows repeating boilerplate options like
{ parserOptions: { ecmaVersion: 6 } }
in rule tests, in favor of specifying defaults in theRuleTester
constructor instead.Incorrect code for this rule:
Correct code for this rule:
There are a few open design questions:
parserOptions
should the rule need to detect in order to report an error? (2? Some percentage of the total number of test cases? All of the test cases?)ecmaVersion
? (For example, if some tests haveecmaVersion: 6
and others haveecmaVersion: 7
, should the rule conclude that the user can putecmaVersion: 7
in the constructor?)parserOptions
, what other duplicate options should the rule report? Should it reportRuleTester
-specific options such aserrors
? Should it report all configuration options (e.g.env
)?The text was updated successfully, but these errors were encountered: