-
Notifications
You must be signed in to change notification settings - Fork 3
[Snyk] Security upgrade eslint from 8.27.0 to 9.0.0 #112
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,7 +44,7 @@ | |
| "css-minimizer-webpack-plugin": "^3.2.0", | ||
| "dotenv": "^10.0.0", | ||
| "dotenv-expand": "^5.1.0", | ||
| "eslint": "^8.23.1", | ||
| "eslint": "^9.0.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ESLint 9 upgrade breaks build with incompatible pluginsHigh Severity Upgrading Additional Locations (1) |
||
| "eslint-config-airbnb": "^19.0.4", | ||
| "eslint-config-airbnb-typescript": "^16.2.0", | ||
| "eslint-config-prettier": "^8.5.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 major version upgrade breaks linting due to incompatible config format and plugin peer dependencies
Upgrading ESLint from
^8.23.1to^9.0.0(resolves to 9.39.4 in yarn.lock) is a breaking change. ESLint 9 uses the flat config system (eslint.config.js) by default, but this project only has a legacy.eslintrcfile and noeslint.config.js. Runningeslint .(thelintscript atpackage.json:107) will fail because ESLint 9 won't read.eslintrcwithout settingESLINT_USE_FLAT_CONFIG=false. Additionally, the installed ESLint plugins and configs (eslint-config-react-app@7.0.1,eslint-config-airbnb@19.0.4,@typescript-eslint/eslint-plugin@^5.x,eslint-plugin-react-hooks@^4.6.0,eslint-webpack-plugin@3.2.0) all declare peer dependencies on ESLint 7 or 8, not ESLint 9. This also breaks the webpack dev server's ESLint integration viaeslint-webpack-plugin(config/webpack.config.js).Was this helpful? React with 👍 or 👎 to provide feedback.