You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem stems from the eslint-plugin-promiseproject, and specifically the param-namesrule.
Reproduction
Run the ESLint fixer on the following code:
newPromise((yes,no)=>{yes("hello")})'
Expected behavior:
newPromise((resolve,reject)=>{resolve("hello")})'
Actual behavior:
newPromise((resolve,reject)=>{yes("hello")})'
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. I have submitted an issue to the eslint-plugin-promise repo: eslint-community/eslint-plugin-promise#145
If and when there is a resolution to that issue, we should take steps to update accordingly.
The text was updated successfully, but these errors were encountered:
What version of standard? v12.0.1
This problem stems from the
eslint-plugin-promise
project, and specifically theparam-names
rule.Reproduction
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. I have submitted an issue to the eslint-plugin-promise repo: eslint-community/eslint-plugin-promise#145
If and when there is a resolution to that issue, we should take steps to update accordingly.
The text was updated successfully, but these errors were encountered: