Skip to content

fix(eslint): don't lint ignored files #491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2020

Conversation

andyrooger
Copy link
Contributor

Filter out files ignored by the eslint config when linting on watched builds. This happened already for initial and non-watched builds.

This should stop the warnings every time a file ignored by eslintrc is changed that look like

[unknown]: File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Closes #485

Filter out files ignored by the eslint config when linting on watched builds.
Before this, ignored files would still be passed to the linter when changed and would trigger warnings in webpack.

Closes TypeStrong#485
@codeclimate
Copy link

codeclimate bot commented Jul 29, 2020

Code Climate has analyzed commit 6f76ae1 and detected 0 issues on this pull request.

View more on Code Climate.

@piotr-oles piotr-oles merged commit e288438 into TypeStrong:master Jul 31, 2020
@piotr-oles
Copy link
Collaborator

Thanks a lot for this fix! :)

@piotr-oles
Copy link
Collaborator

🎉 This PR is included in version 5.0.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eslint: File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
2 participants