-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
chore: Enable rule no-confusing-void-expression
#15485
Conversation
// TODO: Remove this in Babel 8 | ||
addImport() { | ||
return this.file.addImport(); | ||
this.file.addImport(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also remove it and file.addImport
now.
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/54110/ |
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/54094/ |
@@ -629,7 +629,7 @@ export default class Scope { | |||
if (binding) { | |||
newName ||= this.generateUidIdentifier(oldName).name; | |||
const renamer = new Renamer(binding, oldName, newName); | |||
return process.env.BABEL_8_BREAKING | |||
process.env.BABEL_8_BREAKING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you convert this to an if
/else
?
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Fixes #1, Fixes #2
Initially I wanted to wait for typescript-eslint/typescript-eslint#6187 and typescript-eslint/typescript-eslint#6150 to be fixed, but today I was bothered again while reading the
parser
code, so I manually modified them.