rizowski / eslint-watch

ESLint with simple watching capabilities
https://www.npmjs.com/package/eslint-watch
MIT License
193 stars 29 forks source link

--watch-ignore should include by default the ignored patterns #189

Open SrBrahma opened 1 year ago

SrBrahma commented 1 year ago

Environment

Basic Description of the problem

By running pnpm cross-env DEBUG=esw:* pnpm esw --watch --ext ts,tsx ., it shows that patterns that should be ignored (in .eslintignore or eslintrc's ignorePattern) are being watched (.next, storybook-static, public, other stuff...). Files with different extensions are also being watched, such as .js, .png...

I found this because my -w is not working (it says SKIPPING the changed file) so I tried this DEBUG env.