Fix comma-dangle schema #13739
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
breaking
This change is backwards-incompatible
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
comma-dangle
schema should be fixed to allow only 1 element (either string or object, not string + object) in the configuration array, since the rule reads only the first element and ignores the rest:Allowing multiple elements can be misleading, as in #13165. Users might expect that an additional object can be used to override the string option.
We already fixed this in #13166 but reverted the change in #13564 per the semver policy, so this is a task for the next major version.
The text was updated successfully, but these errors were encountered: