Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camelcase duplicate warning bug #10801

Closed
helixbass opened this issue Aug 26, 2018 · 3 comments
Closed

camelcase duplicate warning bug #10801

helixbass opened this issue Aug 26, 2018 · 3 comments
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

Comments

@helixbass
Copy link
Contributor

Tell us about your environment

  • ESLint Version: 5.4.0
  • Node Version: 8.11.3
  • npm Version: 5.6.0

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 ESLint lib/rules/camelcase.js rule

What 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 in tests/lib/rules/camelcase.js that would have been failing:

  • invalid test var { category_id } = query; (where ignoreDestructuring is implicitly false)
  • invalid test function foo({ no_camelcased }) {}; (where ignoreDestructuring is implicitly false)

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

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Aug 26, 2018
helixbass added a commit to helixbass/eslint that referenced this issue Aug 26, 2018
@ilyavolodin ilyavolodin added bug ESLint is working incorrectly rule Relates to ESLint's core rules evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion and removed triage An ESLint team member will look at this issue soon labels Aug 27, 2018
@helixbass
Copy link
Contributor Author

@ilyavolodin
Copy link
Member

Got it, thanks for the explanation.

@ilyavolodin ilyavolodin added accepted There is consensus among the team that this change meets the criteria for inclusion and removed evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion labels Aug 27, 2018
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Mar 2, 2019
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Mar 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

2 participants