Kishan Rajdev
Kishan Rajdev

Reputation: 1967

Ignore warnings for the file placed in .eslintignore

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

Answers (1)

Kishan Rajdev
Kishan Rajdev

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

Related Questions