-
Notifications
You must be signed in to change notification settings - Fork 376
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
Update to ESLint 9.20.1 #7437
base: main
Are you sure you want to change the base?
Update to ESLint 9.20.1 #7437
Conversation
"0", | ||
"--report-unused-disable-directives" | ||
]); | ||
runExternalModule(eslintExecutable, ["lib", "test", "--max-warnings", "0"]); |
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.
ESLint 9 complains about unused directives even without the parameter, so drop the parameter.
The globs in the config decide what files are matched, so I dropped the --ext
parameter as well. If we add an ESLint plugin that lints scss files in the future, that should work without modifications of the gulpfile.
8091514
to
eeeceff
Compare
eeeceff
to
8664b6a
Compare
"react/no-danger": "warn", | ||
"react/no-did-update-set-state": "error", | ||
"react/no-will-update-set-state": "error", | ||
"react/prop-types": "error", |
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 react/prop-types
was disabled in #7382 (comment), but apparently doesn't trigger 1400+ warnings in ESLint 9, so re-enable the rule.
Update to ESLint 9 since ESLint 8 reached end-of-life on 2024-10-05 and is no longer maintained. The main part of this PR is the new flat configuration file, which is quite close to a 1:1 migration of the previous non-flat config. The majority of lines is the rules section, which is the same as before except for the now deprecated rules that I removed.
8664b6a
to
e09f146
Compare
Update to ESLint 9 since ESLint 8 reached end-of-life on 2024-10-05 and is no longer maintained. This is the TerriaMap part of TerriaJS/terriajs#7437
Update to ESLint 9 since ESLint 8 reached end-of-life on 2024-10-05 and is no longer maintained. This is the TerriaMap part of TerriaJS/terriajs#7437
The corresponding TerriaMap PR is TerriaJS/TerriaMap#732 |
What this PR does
Depends on: #7411, #7382, #7381
Update to ESLint 9 since
ESLint 8 reached end-of-life
on 2024-10-05 and is no longer
maintained.
The main part of this PR is
the new flat configuration
file, which is quite close to
a 1:1 migration of the previous
non-flat config. The majority
of lines is the rules section,
which is the same as before
except for the now deprecated
rules that I removed.
Test me
Run
yarn gulp lint
.Checklist
doc/
.