如何禁用ESLint中的所有默认规则?在这个页面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'?
1.0.0-rc-1
。尽管如此,我已经使用了 eslint 目录中存在的config.json
并禁用了所有规则。 - Megh Parikh