Published on

What Is `.eslintignore`?

Authors
  • avatar
    Name
    hwahyeon
    Twitter

.eslintignore is a configuration file that tells ESLint which files or directories to exclude from linting.
In other words, it instructs ESLint to "ignore these files."

Example

Suppose you create a .eslintignore file in the project root:

node_modules/
dist/
*.min.js
  • node_modules/ → library code should not be linted
  • dist/ → build artifacts should not be linted
  • *.min.js → minified JS files should not be linted

Notes

  • .eslintignore uses the same glob patterns as .gitignore.
  • If .eslintignore is missing, ESLint falls back to .gitignore.