-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Bug]: TypeError: Cannot read properties of undefined (reading 'parserOptions') #3519
Comments
Same behavior |
@ljharb Hello. You are trying to get all rules here, while the 'all' obj is empty, due to the circular dependency
|
As a workaround right now u can import reactPlugin previously const reactPlugin = require('eslint-plugin-react');
const reactConfig = require('eslint-plugin-react/configs/recommended');
plugins: {
react: reactPlugin,
},
rules: {
...reactConfig.rules,
} |
Is there an existing issue for this?
Description Overview
I'm trying to use the latest
eslint-plugin-react
7.32.0 within the new ESLint configuration file and ran intoTypeError: Cannot read properties of undefined (reading 'parserOptions')
error.You can see a reproduction here https://stackblitz.com/edit/node-zkuutt?file=package.json,eslint.config.js.
Just run
npx eslint .
in the terminal:Expected Behavior
No problem using the latest
eslint-plugin-react
with new ESLint configuration.eslint-plugin-react version
7.32.0
eslint version
8.3.10
node version
18.12.1
The text was updated successfully, but these errors were encountered: