How to delete eslint in react: 1. Execute the "npm run eject" command; 2. Modify the code in package.json to ""eslintConfig": {"extends": ["react-app"," react-app/jest"],"rules": {"no-undef": "off"...}"; 3. Restart the project.
#The operating environment of this tutorial: Windows 10 system, react17 version, Dell G3 computer.
How to delete eslint in react?
React turns off Eslint code inspection
1. npm run eject
2. Modify the code in package.json
"eslintConfig": { "extends": [ "react-app", "react-app/jest" ], "rules": { "no-undef": "off", "no-restricted-globals": "off", "no-unused-vars": "off" } },
3. Restart Project
Recommended learning: "react video tutorial"
The above is the detailed content of How to delete eslint in react. For more information, please follow other related articles on the PHP Chinese website!