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关闭Eslint代码检查最先出现在Python成神之路

版权声明:
作者:主机优惠
链接:https://www.techfm.club/p/12848.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>