You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and my issue is unique
My issue appears in the command-line and not only in the text editor
Description Overview
Running eslint issues a warning: Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration
I thought maybe it was ignoring the version: 'detect' but if I change it to version: 'bunk' I get this warning instead:
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration .
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “bunk”
Changing it from 'detect' to '16.x' (which is the version we are on) still issues the warning as well.
In my package.json, I have:
"peerDependencies": {
"react": "^16.14.0",
},
Expected Behavior
I would expect no warning to be issued if 'detect' is supplied.
eslint-plugin-react version
7.37.2
eslint version
9.16.0
node version
22
The text was updated successfully, but these errors were encountered:
exportdefaultEslintTypeScript.config(// Ignores as a separate block because `files` prop ignores `ignores` property when used in the same block{ignores: ['dist'],},{settings: {react: {version: 'detect'}},},
Is there an existing issue for this?
Description Overview
Running eslint issues a warning:
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration
My config config contains:
I thought maybe it was ignoring the
version: 'detect'
but if I change it toversion: 'bunk'
I get this warning instead:Changing it from 'detect' to '16.x' (which is the version we are on) still issues the warning as well.
In my package.json, I have:
Expected Behavior
I would expect no warning to be issued if 'detect' is supplied.
eslint-plugin-react version
7.37.2
eslint version
9.16.0
node version
22
The text was updated successfully, but these errors were encountered: