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、重启项目
共有 0 条评论