"one-var": { "initialized": "never" } does not prevent initialized var declarations from being joined with uninitialized var declarations #2786
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
I expect to get an error when using this rule:
and this code:
Specifically, I expect this error:
Split initialized 'var' declarations into multiple statements.
I do get an error if I do:
I expect
"one-var": { "initialized": "never" }
to prevent initialized var declarations from being joined with any other var declarations (initialized or uninitialized).The text was updated successfully, but these errors were encountered: