从React项目中删除ESLint [英] Remove ESLint from React project

查看:181
本文介绍了从React项目中删除ESLint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 eslint --init 将ESLint配置为我的项目,并将其配置为我的项目.

I configured ESLint to my project using eslint --init, it's configured to my project.

现在,我想从我的项目中删除它,因为它在项目中显示出不必要的错误.

Now I want to remove that from my project because it's showing unnecessary errors over the project.

如何从我的项目中删除启动的ESLint?

How to remove the initiated ESLint from my project?

推荐答案

基本上,只需从项目中删除 .eslintrc 和任何其他eslint配置文件(如果有).

Basically, just delete .eslintrc and any other eslint config files(if any) from the project.

另外,检查您的package.json并删除所有eslint软件包,并在您的项目上进行npm安装.

Also, check your package.json and delete all eslint packages and do npm install on your project.

此外,如果您使用的是vscode,则可以通过禁用它一个简单的设置

Also, if you are using vscode, you can disable it with a simple setting

这篇关于从React项目中删除ESLint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆