您好,欢迎访问一九零五行业门户网

react怎么删除eslint

react删除eslint的方法:1、执行“npm run eject”命令;2、在package.json中修改代码为“ eslintconfig: {extends: [react-app,react-app/jest],rules: {no-undef: off...}”;3、重启项目即可。
本教程操作环境:windows10系统、react17版、dell g3电脑。
react怎么删除eslint?
react关闭eslint代码检查
1、npm run eject
2、在package.json 中修改代码
"eslintconfig": { "extends": [ "react-app", "react-app/jest" ], "rules": { "no-undef": "off", "no-restricted-globals": "off", "no-unused-vars": "off" } },
3、重启项目
推荐学习:《react视频教程》
以上就是react怎么删除eslint的详细内容。
其它类似信息

推荐信息