首先运行npm run eject。
然后在package.json文件中配置如下:
看自己的需求关闭即可
"eslintConfig": { "extends": "react-app", "rules":{ "no-unused-vars":"off", "no-array-constructor":"off", "eqeqeq":"off", "no-redeclare":"off" } },
其他配置设置参考ESLint官网:传送门
create-react-app关闭eslint提醒
最新推荐文章于 2024-05-16 01:47:21 发布