Rule id-blacklist incorrectly flags object property reassignments #12787
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
rule
Relates to ESLint's core rules
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint
Please show your full configuration:
Configuration
Highlight:
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?
The
data
property shouldn't be flagged here because it's coming from the axios request and there's nothing I can do about it. I'm converting the valueresponse.data
to the variableuser
. However it highlights it as being as if I were assigning the data variable.What actually happened? Please include the actual, raw output from ESLint.
Are you willing to submit a pull request to fix this bug?
I would but I'm not sure how as I've never delved into the eslint source!
The text was updated successfully, but these errors were encountered: