Conflicting rules: comma-spacing & array-bracket-spacing #9760
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
evaluating
The team will evaluate this issue to decide whether it meets the criteria for inclusion
rule
Relates to ESLint's core rules
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
eslint .
What did you expect to happen?
For the linting to succeed because it followed the comma-spacing rule but then I realized the conflict. If run with
--fix
, it is not fixed because of the conflicting rules.What actually happened? Please include the actual, raw output from ESLint.
array-bracket-spacing
requires there to be no space before the close bracket in the destruction butcomma-spacing
requires there to be a space after the final comma in the destruction. Therefore, a conflict occurs.The text was updated successfully, but these errors were encountered: