camelcase duplicate warning bug #10801
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
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Coffeescript (ran into this while working on eslint-plugin-coffee)
Please show your full configuration:
The relevant configuration would be
camelcase: error
. I encountered this while testing the Coffeescript custom parser against the existing ESLintlib/rules/camelcase.js
ruleWhat did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
I was running against a copied version of
tests/lib/rules/camelcase.js
where the tested pieces of code were converted to Coffeescript, but these are the corresponding tests intests/lib/rules/camelcase.js
that would have been failing:invalid
testvar { category_id } = query;
(whereignoreDestructuring
is implicitlyfalse
)invalid
testfunction foo({ no_camelcased }) {};
(whereignoreDestructuring
is implicitlyfalse
)What did you expect to happen?
For these tests to pass
What actually happened? Please include the actual, raw output from ESLint.
They failed due to reporting 2 errors instead of the expected one. I found the bug and will open a fixing PR momentarily
The text was updated successfully, but these errors were encountered: