Skip to content

Eslint tries to lint non-existing/phantom files? #18162

Answered by mdjermanovic
Lilja asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like all those files are dotfiles (files starting with .). In flat config, dotfiles are not ignored by default. If you want eslint to skip linting dotfiles, you can add ignore pattern "**/.*":

-ignores: ["node_modules", "coverage", ".nyc_output", "dist"],
+ignores: ["node_modules", "coverage", ".nyc_output", "dist", "**/.*"],

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Lilja
Comment options

Answer selected by Lilja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants