[camelcase] False positive when using leading underscore when destructuring with computed object property name. #13022
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?
default
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
No error.
What actually happened? Please include the actual, raw output from ESLint.
Error:
Seems to be caused by the computed object property name in the
{ ['foo']: _foo }
destructuring syntax. There is no error if it is changed to{ foo: _foo }
.Are you willing to submit a pull request to fix this bug?
Not at this time.
The text was updated successfully, but these errors were encountered: