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

False negative for camelcase with ignoreDestructuring #11084

Closed
madbence opened this issue Nov 14, 2018 · 1 comment
Closed

False negative for camelcase with ignoreDestructuring #11084

madbence opened this issue Nov 14, 2018 · 1 comment
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

@madbence
Copy link
Contributor

madbence commented Nov 14, 2018

Tell us about your environment

  • **ESLint Version: 5.9.0 **
  • **Node Version: 11.0.0 **
  • **npm Version: 6.4.1 **

What parser (default, Babel-ESLint, etc.) are you using?

default

Please show your full configuration:

Configuration
camelcase: [2, {ignoreDestructuring: true}]

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

minimal working example to reproduce (yes, it's a silly example):

var { [{category_id: 123}]: categoryId } = query;

What did you expect to happen?

Reported camelcase error for category_id.

What actually happened? Please include the actual, raw output from ESLint.

No error was reported

Are you willing to submit a pull request to fix this bug?

yep 😸

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Nov 14, 2018
@nzakas nzakas added bug ESLint is working incorrectly rule Relates to ESLint's core rules accepted There is consensus among the team that this change meets the criteria for inclusion and removed triage An ESLint team member will look at this issue soon labels Nov 16, 2018
@nzakas
Copy link
Member

nzakas commented Nov 16, 2018

Confirmed, this looks like a bug. Please feel free to open a pull request to fix this. :)

madbence added a commit to madbence/eslint that referenced this issue Nov 21, 2018
madbence added a commit to madbence/eslint that referenced this issue Nov 21, 2018
madbence added a commit to madbence/eslint that referenced this issue Dec 10, 2018
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jun 21, 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 Jun 21, 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