Skip to content
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

Merged
merged 4 commits into from
Mar 14, 2023

Conversation

liuxingbaoyu
Copy link
Member

@liuxingbaoyu liuxingbaoyu commented Mar 11, 2023

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

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.

Comment on lines +41 to 44
// TODO: Remove this in Babel 8
addImport() {
return this.file.addImport();
this.file.addImport();
}
Copy link
Member Author

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.

@babel-bot
Copy link
Collaborator

babel-bot commented Mar 11, 2023

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/54110/

@babel-bot
Copy link
Collaborator

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
Copy link
Member

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>
@nicolo-ribaudo nicolo-ribaudo merged commit 4035521 into babel:main Mar 14, 2023
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 14, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants