-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
param-names fixer breaks code functionality #145
Comments
adrianmcli
changed the title
Fixer for the param-names rule does not change calls inside the construction function
Fixer for the param-names rule breaks code functionality
Sep 7, 2018
adrianmcli
changed the title
Fixer for the param-names rule breaks code functionality
param-names fixer breaks code functionality
Sep 7, 2018
Can submit a PR for this if we can agree that it's better to remove the fixer. |
Removing the fixer sounds like a good idea. Thanks for pointing this out - PR welcome for that! |
Sounds good! Working on it now. |
macklinu
pushed a commit
that referenced
this issue
Sep 7, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The fixer for the
param-names
rule breaks code functionality.The fixer renames arguments in a Promise constructor function, but does not propagate the name change to the calling code.
Steps to Reproduce
Run the ESLint fixer on the following code:
Expected behavior:
Actual behavior:
Additional Information
Rather than trying to change people's code, I think it's better to remove the fixer rather than change variable names everywhere.
The text was updated successfully, but these errors were encountered: