站长资讯网
最全最丰富的资讯网站

react怎么删除eslint

react删除eslint的方法:1、执行“npm run eject”命令;2、在package.json中修改代码为“ "eslintConfig": {"extends": ["react-app","react-app/jest"],"rules": {"no-undef": "off"…}”;3、重启项目即可。

react怎么删除eslint

本教程操作环境: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视频教程》

赞(0)
分享到: 更多 (0)