IanVS / eslint-nibble

Ease into ESLint, by fixing one rule at a time
MIT License
787 stars 29 forks source link

ignore not found glob pattern? #105

Closed addlistener closed 1 year ago

addlistener commented 1 year ago
$ eslint-nibble --ext .jsx,.js,.tsx,.ts ./src/**/* ./src-api/**/* ./src-shared/**/*

As you can see. './src/img/auth' is an image folder. It does not make sense to raise an error here.

image image
IanVS commented 1 year ago

I believe your shell is expanding the globs into a list of arguments. You could try quoting each glob to prevent that behavior, or you could just provide the folder names: eslint-nibble --ext .jsx,.js,.tsx,.ts src src-api src-shared

addlistener commented 1 year ago

I tried quoting them and it didn't work.

I end up expanding them manually eslint-nibble ./src/**/*.ts ./src/**/*.tsx ...

IanVS commented 1 year ago

Did you try the other way I suggested, with folder names? And did you try quoting with both single and double quotes? (some shells need one vs the other)

addlistener commented 1 year ago

eslint-nibble --ext .jsx,.js,.tsx,.ts src src-api src-shared do work! Thanks!