简体   繁体   English

从 React 项目中移除 ESLint

[英]Remove ESLint from React project

I configured ESLint to my project using eslint --init , it's configured to my project.我使用eslint --init将 ESLint 配置到我的项目中,它已配置到我的项目中。

Now I want to remove that from my project because it's showing unnecessary errors over the project.现在我想从我的项目中删除它,因为它在项目中显示了不必要的错误。

How to remove the initiated ESLint from my project?如何从我的项目中删除启动的 ESLint?

Basically, just delete .eslintrc and any other eslint config files(if any) from the project.基本上,只需从项目中删除.eslintrc和任何其他 eslint 配置文件(如果有的话)。

Also, check your package.json and delete all eslint packages and do npm install on your project.此外,检查您的 package.json 并删除所有 eslint 包并在您的项目中安装 npm。

Also, if you are using vscode, you can disable it with a simple setting另外,如果你使用的是 vscode,你可以通过一个简单的设置来禁用它

You will have to remove the .eslintrc file and also remove the devdependencies eslint , eslint-plugin-react from your package.json您将必须删除.eslintrc文件并从 package.json 中删除 devdependencies eslinteslint-plugin-react

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM