- Published on
What Is `.eslintignore`?
- Authors

- Name
- hwahyeon
.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 linteddist/→ build artifacts should not be linted*.min.js→ minified JS files should not be linted
Notes
.eslintignoreuses the same glob patterns as.gitignore.- If
.eslintignoreis missing, ESLint falls back to.gitignore.