ESLint: disable all default rules

How to disable all default rules in ESLint? It shows on this page http://eslint.org/docs/user-guide/command-line-interface what you can use --reset

, but when I do:

$ eslint --global globalVar --reset --rule 'no-undef: 2' main.js
Invalid option '--reset' - perhaps you meant '--quiet'?

      

+3


source to share


1 answer


If you are using the eslint version <=0.24.1

you can use a flag --reset

to disable all rules, but if you are using 1.0.0-rc-1

then all rules are disabled by default and the reset flag is removed.

check your version with eslint -v



Hope this helps.

+4


source







All Articles