2

I have some vendor JS libraries in a project, and I want to disable all Eslint checking for these files.

I've looked at the documentation and it describes how to disable checking via inline comments, e.g.

/* eslint-disable */

..but I would rather not touch the files, and configure Eslint via e.g. a local .eslintrc file. How to disable all checking as above, via such a file, is not described in the documentation.

Is it possible, and if so what would the .eslintrc file look like? It would be OK to disable ALL checking in a given directory.

Dan
  • 1,249
  • 2
  • 16
  • 31

1 Answers1

9

You can look at this answer from a similar question.

Basically you should add a .eslintignore file to your project's root directory and specify the files and directories you want to ignore like so:

.eslintignore file:

build/*.js
config/*.js
bower_components/foo/*.js

Also look at this section from the official ESLint docs

Community
  • 1
  • 1
Mor Paz
  • 2,088
  • 2
  • 20
  • 38