Repository navigation
tools: update eslint to v10 #61905
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
Merged
Merged
tools: update eslint to v10 #61905
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
da0f917
tools: bump eslint to v10, babel to v8.0.0-rc.2
JLHwung 34399fc
tools: update rules for ESLint 10
JLHwung 69c2e17
tools: update eslint config
JLHwung af4c26f
tools: no-unassigned-vars
JLHwung 83e18a3
tools: preserve-caught-error
JLHwung 0808672
tools: no-global-assign
JLHwung 5b83c73
tools: turn on no-shadow-restricted-names
JLHwung 2f1d4da
tools: npm dedupe
JLHwung 100c22a
tools: remove createImportExpressions from config
JLHwung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tools: update rules for ESLint 10
- Loading branch information
commit 34399fc1957ce730417eb337625a8bc52a3b5f6d
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
The ESLint v10 has modified the ranges of a Program to cover the leading comments.
https://eslint.org/docs/latest/use/migrate-to-10.0.0#-program-ast-node-range-spans-entire-source-text
As a result, the
/* eslint-disable */comment does not work if we still report error at the start of the program, since the comment will be after the start of the Program node. Here we report at the first statement.c.f. eslint/eslint#20451