{"id":626,"hash":"c7ea7ba99df4437fad38c86c4f7e73f2aba5eb59815b557a540b627b194bfc83","pattern":"Warning: React version not specified in &#39;eslint-plugin-react settings&#39; while running eslint on top of React 18.2.0","full_message":"Issue\nGit bash shows Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration . while running eslint.\n\nHow to produce\ncreate-react-app my-app\ncd app\nnpm install eslint --save-dev\nnpx eslint --init\nnpx eslint .\n\npackage.json\n{\n  ...\n  \"dependencies\": {\n    \"@testing-library/jest-dom\": \"^5.16.4\",\n    \"@testing-library/react\": \"^13.3.0\",\n    \"@testing-library/user-event\": \"^13.5.0\",\n    \"react\": \"^18.2.0\",\n    \"react-dom\": \"^18.2.0\",\n    \"react-scripts\": \"5.0.1\",\n    \"web-vitals\": \"^2.1.4\"\n  },\n  ...\n  \"devDependencies\": {\n    \"eslint\": \"^8.18.0\",\n    \"eslint-plugin-react\": \"^7.30.1\"\n  }\n}\n\nI tried to find solutions but failed.\nI kindly ask for your help.","ecosystem":"npm","package_name":"reactjs","package_version":null,"solution":"Add this to your config in ESLint Config File, i.e. .eslintrc or eslint.config.js\n\n{\n  \"settings\": {\n    \"react\": {\n      \"version\": \"detect\"\n    }\n  }\n}\n\nSee the config here: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/README.md#configuration\n\nDocs\nhttps://eslint.org/docs/\n\nhttps://eslint.org/docs/latest/use/configure/migration-guide\n\nhttps://eslint.org/docs/latest/use/configure/configuration-files","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/72780296/warning-react-version-not-specified-in-eslint-plugin-react-settings-while-run","votes":91,"created_at":"2026-04-19T04:51:24.129993+00:00","updated_at":"2026-04-19T04:51:24.129993+00:00"}