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 rule doesn't ignore default parameter assignment when disabled #8511
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
Not sure if this is a bug or a rule change request; thanks for reviewing |
Thanks for the report, @cdanielsen! I can reproduce this. Note that the following works: function snakeCase ({
param_1,
param_2
} = {}) {
// do stuff
} I think the default assignment there is what's throwing the rule off. |
vitorbal
added
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
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
evaluating
The team will evaluate this issue to decide whether it meets the criteria for inclusion
labels
Apr 27, 2017
I'll work on this. |
vitorbal
added a commit
that referenced
this issue
Apr 29, 2017
erindepew
pushed a commit
to erindepew/eslint
that referenced
this issue
Oct 17, 2017
erindepew
pushed a commit
to erindepew/eslint
that referenced
this issue
Oct 23, 2017
erindepew
pushed a commit
to erindepew/eslint
that referenced
this issue
Nov 13, 2017
erindepew
pushed a commit
to erindepew/eslint
that referenced
this issue
Nov 30, 2017
erindepew
pushed a commit
to erindepew/eslint
that referenced
this issue
Dec 4, 2017
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 7, 2018
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
Tell us about your environment
ESLint Version: 3.19.0
Node Version: 6.9.4
npm Version: 3.10.10
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.
Disabling the
camelcase
rule does not appear to respect ES6 default parameter assignment when used with object destructuring syntax.Here's a simple example:
What did you expect to happen?
Eslint should not care that
param_1
andparam_2
are using snake case instead of camelCase as the rule is disabledWhat actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: