ESLint doesn't respect the .eslintignore and hangs on the last step
See original GitHub issueTell us about your environment
- Node version: v10.18.0
- npm version: v6.13.4
- Local ESLint version: v6.8.0
What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint
and for ts
, tsx
files @typescript-eslint/parser
Please show your full configuration:
I created a small project to demonstrate the issue.
https://github.com/lipis/eslint-ts-bug
Just clone it, run yarn
and then yarn test
.
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
When I run yarn test
it also parses the lib
directory, which is ignored inside the .eslintignore
… why is that?
yarn test
# the actual command
# eslint --ignore-path .gitignore --ext .js,.ts,.tsx . --debug
What did you expect to happen?
To ignore the lib
directory and finish the task.
What actually happened? Please include the actual, raw output from ESLint.
Doesn’t ignore the lib
and hangs in the end.
Are you willing to submit a pull request to fix this bug?
No 😦
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
ESLint only ignores
/node_modules/*
and/bower_components/*
by default. Feel free to make an RFC if you’d like to propose a change!Does ESLint ignore the files in
.gitignore
by default?what I did to solve my problem is to add the ignore list inside the
eslint.json
file with the additional patterns that are not part of.gitignore
I think the idea would be for ESLint to ignore
.gitignore
by default as well.