Is there a way to disable specific rules for a folder? For example, I don't want to have required JSDoc comments for all my test files in the test
folder. Is there a way to do this?
Disable eslint rules for folder
eslint
Related Topic
- Java – Infinite loop when deploying a war on tomcat 7
- Javascript – Turning off eslint rule for a specific file
- Javascript – Global variables in Javascript and ESLint
- Java – How to handle asynchronous operations in REST
- Java. getClass() returns a class, how come I can get a string too
- Javascript – AngularJS way to remove all cookies when browser is closed
Best Answer
To ignore some folder from eslint rules we could create the file
.eslintignore
in root directory and add there the path to the folder we want omit (the same way as for.gitignore
).Here is the example from the ESLint docs on Ignoring Files and Directories: