[go: nahoru, domu]

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

Enable eqeqeq rule #16404

Merged
merged 3 commits into from
Apr 6, 2024
Merged

Enable eqeqeq rule #16404

merged 3 commits into from
Apr 6, 2024

Conversation

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

@babel-bot
Copy link
Collaborator
babel-bot commented Apr 3, 2024

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

@@ -1128,6 +1128,7 @@ class Printer {
if (
this._buf.hasContent() &&
(comment.type === "CommentLine" ||
// eslint-disable-next-line eqeqeq
commentStartLine != commentEndLine)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need != here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize that null/undefined shouldn't exist here.

@@ -35,6 +35,7 @@ module.exports = [
"no-process-exit": "error",
"no-var": "error",
"prefer-const": "error",
eqeqeq: ["error", "smart"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Can we sort the rule alphabetically?

@liuxingbaoyu liuxingbaoyu merged commit a84ec28 into babel:main Apr 6, 2024
51 checks passed
@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 Jul 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2024
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