rizowski / eslint-watch

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

Slowness, maybe because it's not just linting an individual file? not sure #170

Closed JohnnyFun closed 3 years ago

JohnnyFun commented 3 years ago

Environment

Basic Description of the problem

If I watch a single file with npx esw -w --clear src\app.js, it responds relatively quickly.

But if I watch an entire directory, it's pretty slow. npx esw -w --clear src --ext .js,.svelte

If it helps, webpack's eslint-loader in watch mode is immediate when a file is changed, so might help to look at what they're doing.

JohnnyFun commented 3 years ago

I just needed to use --cache --cache-strategy content and was faster.