Disable eslint for all files in directory and subdirectories

In ESLint 6.7.0+ use "ignorePatterns": [].

As of ESLint 6.7.0, you can now pass an Array of paths to a top-level "ignorePatterns" attribute in your ESLint config in .eslintrc.json:

{
  // The rest of your ESLint config...
  "ignorePatterns": [ "gists/", "vendor/" ] 
}

You can read the release announcement from November 2019 here.


You can add a .eslintignore in project root directory, and use it the same as .gitignore, .npmignore, etc..

When it comes to ignoring multiple files at the same time, we can use **.

For example: src/** means ignore all files in [root]/src.

Tags:

Eslint