[英]ESLint: Disable all default rules
How to disable all default rules in ESLint? 如何禁用ESLint中的所有默认规则? It shows on this page http://eslint.org/docs/user-guide/command-line-interface that you can use
--reset
but when I do so: 它显示在此页面http://eslint.org/docs/user-guide/command-line-interface上 ,您可以使用
--reset
但是当我这样做时:
$ eslint --global globalVar --reset --rule 'no-undef: 2' main.js
Invalid option '--reset' - perhaps you meant '--quiet'?
If you are using eslint version <=0.24.1
then you can use --reset
flag to turn off all the rules but if you using the 1.0.0-rc-1
then all the rules are by default off and the reset flag has been removed. 如果您使用的是eslint版本
<=0.24.1
那么您可以使用--reset
标志来关闭所有规则,但如果您使用的是1.0.0-rc-1
则默认关闭所有规则并且重置标志具有被删除了。
check your version using eslint -v
使用
eslint -v
检查您的版本
I hope this helps. 我希望这有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.