在 package.json 中修改为一下
"eslintConfig": {
"extends": "react-app",
"rules": {
"no-undef": "off",
"no-restricted-globals": "off",
"no-unused-vars": "off"
}
}
React中关闭Eslint
最新推荐文章于 2023-07-20 13:51:11 发布