Only enable eslint in specific files
问题 I really like eslint for es6 projects. Previously I've used it for new projects. Now I want to add it to a legacy project. Fixing all pre-existing lint issues in one go is too much effort. Can I configure eslint (in .eslintrc.js ) to only check files where I've explicitly enabled it with /* eslint-enable */ or similar? 回答1: ESLint has no default-disabled state that can be toggled by a file comment. You might be able to use .eslintignore for this purpose, however. You can ignore everything and