id-blacklist doesn't warn when renaming properties to blacklisted identifiers in destructuring assignment. #12807
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
good first issue
Good for people who haven't worked on ESLint before
help wanted
The team would welcome a contribution from the community for this issue
regression
Something broke
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?
ESLint should warn that
bar
is a blacklisted identifier, but notfoo
as it is a property from the originalbaz
object.What actually happened? Please include the actual, raw output from ESLint.
There is no warning for either identifier.
Context for this: A recent PR bugfix removed the errant warning on properties that were being renamed (
foo
in the example above). In the course of this it ignores the following blacklistedbar
identifier. This is a follow up to #12792.Are you willing to submit a pull request to fix this bug?
Yes
The text was updated successfully, but these errors were encountered: