Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 ESLint 9 upgrade breaks linting: .eslintrc config and .eslintignore are ignored by default

ESLint 9 switched to the "flat config" system (eslint.config.js) by default. The project's .eslintrc configuration file and .eslintignore file will no longer be automatically loaded when running eslint . or eslint . --fix (see package.json:107-108). This means all custom rules, extends (wesbos/typescript), parser options, plugin settings, and ignore patterns defined in .eslintrc and .eslintignore will be silently dropped. ESLint will either error out (if it can't find a valid flat config) or lint with no project-specific rules applied.

Additionally, several eslint config/plugin dependencies are incompatible with ESLint 9:

  • eslint-config-react-app@7.0.1
  • eslint-config-wesbos@3.0.2
  • eslint-config-airbnb@19.0.4
  • eslint-config-airbnb-typescript@16.2.0
  • eslint-plugin-react-hooks@4.6.0
  • eslint-webpack-plugin@3.1.1

To fix this, either migrate to the flat config format and update all plugins, or stay on ESLint 8.

Suggested change
"eslint": "^9.0.0",
"eslint": "^8.23.1",
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ESLint 9 upgrade breaks incompatible plugin ecosystem

High Severity

Upgrading eslint to ^9.0.0 (resolved to 9.39.4) without upgrading the companion ESLint ecosystem packages will break linting and builds. @typescript-eslint/eslint-plugin and @typescript-eslint/parser at ^5.38.0 require ESLint 8 (need v8+). eslint-webpack-plugin at ^3.1.1 doesn't support ESLint 9 (need v4.2.0+). eslint-config-react-app at ^7.0.1 doesn't support ESLint 9's flat config. The project's eslintConfig in package.json uses the legacy extends key, which is unsupported in ESLint 9's default flat config mode.

Additional Locations (2)
Fix in Cursor Fix in Web

"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^16.2.0",
"eslint-config-prettier": "^8.5.0",
Expand Down
Loading
Loading