Reputation: 1967
I have placed certain files in .eslintignore
in my project directory. Though the errors which I was getting earlier have been gone, I still keep getting a warning message for those files.
0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
eg. of the files ignored are,
src/**/*.scss
src/**/*.svg
using this command to run eslint, eslint src/*
How do I remove these warnings?
Upvotes: 3
Views: 4648
Reputation: 1967
This worked for me,
eslint "src/**"
when passing the parameter in double-quotes, it uses node glob syntax to expand.
ref: https://eslint.org/docs/user-guide/command-line-interface
Upvotes: 2