dolsem / eslint-plugin-filename-rules

MIT License
36 stars 8 forks source link

Not working with wildcard eslint run like `eslint src/**/*.ts` #3

Closed ash-r1 closed 4 years ago

ash-r1 commented 4 years ago

I tried to use this plugin with the command yarn eslint ./src/**/*.ts, but it doesn't show any problem. But, it shows an error if I specify the filename: yarn eslint ./src/foo/barFile.ts.

Additionally, I think a bigger similar-featured plugin eslint-plugin-unicorn has the same problem: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/filename-case.md

ash-r1 commented 4 years ago

It would be my fault. It fixed by single-quoted parameter like below: yarn eslint './src/**/*.ts'

Sorry about that.