-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
Description
The .eslintrc.json file suggested below:
{
"plugins": ["react", "react-native"],
"settings": {
"react": {
"version": "detect"
}
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parser": "@babel/eslint-parser",
"env": {
"react-native/react-native": true
},
"rules": {
"react/prop-types": "off",
"react/react-in-jsx-scope": "off"
}
}
appears to use an older ESLint configuration format.
To follow the current recommendations, it’s better to use an eslint.config.js file instead. You can find more details here: eslint configuration file
Also, there is a helpful command that can migrate your existing .eslintrc.json file to the new format: npx @eslint/migrate-config .eslintrc.json
More information about migrating your ESLint config can be found here: migrating eslint config file