A command-line tool that wraps ESLint with file watching capabilities and improved CLI options. Current stable version is v8.0.0, requiring ESLint >=8 and Node >=12.22.0. Regularly releases new versions matching ESLint major releases. Key differentiator: standalone watcher without needing Webpack, Grunt, or other build tools. Provides watch modes, single-file linting on change, terminal clearing, ignore patterns for watching, and configurable watch delay. All standard ESLint options are forwarded unmodified.
npm install eslint-watchVerified import paths — ran on the pinned version, not inferred.
Initialize a project, install dependencies, create basic config, and run eslint-watch in watch mode.
Upgrade to Node.js >=12.22.0, ^14.17.0, or >=16.0.0 and ESLint >=8
Upgrade to Node.js >=10.12.0 and ESLint >=7
Use --version to show eslint-watch version or --versions to show both ESLint and eslint-watch versions
Add .eslintcache to watch-ignore or upgrade to v6.0.1+
Use --watch-ignore flag to add additional ignore patterns as regex strings
Run `npm install -D eslint` in the project directory.
Run `npm install -D eslint-watch` (or global install) and ensure node_modules/.bin is in PATH.
Install locally (`npm install -D eslint-watch`) and run via npx: `npx esw`