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-positive in prefer-const and array-destructuring #8308
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
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
and removed
triage
An ESLint team member will look at this issue soon
labels
Apr 6, 2017
not-an-aardvark
added
accepted
There is consensus among the team that this change meets the criteria for inclusion
and removed
evaluating
The team will evaluate this issue to decide whether it meets the criteria for inclusion
labels
Apr 22, 2017
Thanks for the report. I was able to reproduce this issue. |
I would like to look into this issue as well if no one is working on this :) |
Thanks @VictorHom! |
VictorHom
added a commit
to VictorHom/eslint
that referenced
this issue
Jul 24, 2017
VictorHom
added a commit
to VictorHom/eslint
that referenced
this issue
Sep 24, 2017
If that can help, the same happen with Object destructuring: let a;
const b = {};
({a, c: b.c} = func());
|
This seems like a pretty significant bug. I'd like to take a stab at fixing this. |
nzakas
added a commit
that referenced
this issue
Oct 5, 2018
eslint-deprecated
bot
added
the
archived due to age
This issue has been archived; please open a new issue for any further discussion
label
Apr 18, 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
Tell us about your environment
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.
What did you expect to happen?
No error
What actually happened? Please include the actual, raw output from ESLint.
The rule should consider that it is not possible to actually make predicate a const here.
The text was updated successfully, but these errors were encountered: