-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
prefer-const not work with mutiple functions #12514
Closed
rupertqin opened this issue
Oct 31, 2019
· 8 comments
· Fixed by basics/vector#111, basics/vector#113, thinkwee/thinkwee.github.io#39, alxtford/numconv#46 or WoTTsecurity/api#773
Closed
prefer-const not work with mutiple functions #12514
rupertqin opened this issue
Oct 31, 2019
· 8 comments
· Fixed by basics/vector#111, basics/vector#113, thinkwee/thinkwee.github.io#39, alxtford/numconv#46 or WoTTsecurity/api#773
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
autofix
This change is related to ESLint's autofixing capabilities
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Comments
rupertqin
added
bug
ESLint is working incorrectly
triage
An ESLint team member will look at this issue soon
labels
Oct 31, 2019
It seems that I can't reproduce via online demo. Can you tell us more detail? |
@g-plane try this
|
Reproduced. Online demo. |
g-plane
added
accepted
There is consensus among the team that this change 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
Oct 31, 2019
May I try this on? |
Feel free to do this! |
@g-plane Can you explain what the bug here is? I'm not sure I understand why the above code being flagged is incorrect. |
g-plane
added
the
autofix
This change is related to ESLint's autofixing capabilities
label
Nov 2, 2019
The bug is about autofix, while problem reports work as intended. |
Oh, I see - yes, that does look like a bug. |
This was referenced Mar 11, 2020
This was referenced Mar 26, 2020
This was referenced Apr 3, 2020
eslint-deprecated
bot
added
the
archived due to age
This issue has been archived; please open a new issue for any further discussion
label
May 4, 2020
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
autofix
This change is related to ESLint's autofixing capabilities
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Tell us about your environment
Node version: v10.16.3
npm version: v6.12.0
Local ESLint version: v6.6.0
Global ESLint version: v6.6.0
What did you expect to happen?
rule of
prefer-const
mess up in multiple function.the config is:
file a.js
will
eslint --fix
output asAre you willing to submit a pull request to fix this bug?
Can't help with resolution.
The text was updated successfully, but these errors were encountered: