-
-
Notifications
You must be signed in to change notification settings - Fork 414
chore(deps-dev): bump eslint from 8.57.1 to 9.32.0 #5030
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for respec-pr ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
d5a195a to
19315bb
Compare
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.
Pull Request Overview
This PR updates ESLint from version 8.57.1 to 9.32.0, which is a major version upgrade requiring migration from the legacy .eslintrc.json configuration to the new flat configuration format (eslint.config.mjs).
- Migrates from legacy ESLint configuration format to the new flat config system
- Removes unnecessary ESLint disable comments that are no longer needed with the new version
- Fixes a logical bug in the
before-save.jsfile where the||operator was incorrectly used
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updates ESLint to v9.32.0 and adds required compatibility packages |
| eslint.config.mjs | New flat configuration file replacing the legacy .eslintrc.json |
| .eslintrc.json | Removes the legacy ESLint configuration file |
| src/core/before-save.js | Fixes logical operator bug from ` |
| tests/support-files/hljs-testlang.js | Removes unnecessary eslint-disable comment |
| tests/spec/core/webidl-spec.js | Removes unnecessary eslint-disable comments |
| tests/spec/SpecHelper.js | Removes unnecessary eslint-disable comment |
| src/w3c/templates/sotd.js | Removes unnecessary eslint-disable comment |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
| }); | ||
|
|
||
| export default defineConfig([ | ||
| globalIgnores(["builds/**/*", "js/**/*", "tests/**/*", "eslint.config.mjs"]), |
Copilot
AI
Aug 6, 2025
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.
In ESLint flat config, global ignores should be specified using the ignores property in a configuration object, not as a function call. The correct format would be: { ignores: ["builds/**/*", "js/**/*", "tests/**/*", "eslint.config.mjs"] }
| globalIgnores(["builds/**/*", "js/**/*", "tests/**/*", "eslint.config.mjs"]), | |
| { ignores: ["builds/**/*", "js/**/*", "tests/**/*", "eslint.config.mjs"] }, |
| "eslint:recommended", | ||
| "plugin:prettier/recommended" | ||
| ), | ||
|
|
Copilot
AI
Aug 6, 2025
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 extends property is not valid in ESLint flat config. The compat.extends() result should be spread directly into the configuration array using the spread operator: ...compat.extends(...)
| ...compat.extends( | |
| "eslint:recommended", | |
| "plugin:prettier/recommended" | |
| ), | |
| { |
Closes #5018