1 | initial version |
To deactivate autofix for certain rules in eslint through CLI, add the --no-autofix
flag when running the eslint command:
eslint --no-autofix file.js
This will disable fixing of any autofixable rules in the file.js
file. If you only want to disable autofix for specific rules, you can use the --rule
flag:
eslint --rule 'no-console: off' --no-autofix file.js
This will disable autofix for the no-console
rule in the file.js
file.