简体   繁体   English

如何从eslint-config-airbnb有选择地启用eslint规则

[英]How to selectively enable eslint rules from eslint-config-airbnb

I would like to integrate eslint-config-airbnb into my application. 我想将eslint-config-airbnb集成到我的应用程序中。 but once i have it in, i got millions of errors. 但是一旦有了它,我就会遇到数百万个错误。

is there a way to only enable a few rules. 有没有办法只启用一些规则。 So that i can use some of the important ones, and update my code to turn on rules one by one in the future from eslint-config-airbnb? 这样我就可以使用一些重要的规则,并在将来从eslint-config-airbnb更新我的代码以逐一打开规则?

You can configure the rules by changing the ".eslintrc.json" file. 您可以通过更改“ .eslintrc.json”文件来配置规则。

Read more about configuration in the official documentation here 此处阅读更多关于配置的信息

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

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