eslint-watch icon indicating copy to clipboard operation
eslint-watch copied to clipboard

Add --watch-until-no-errors to continue watching until eslint returns no errors

Open bf opened this issue 3 years ago • 0 comments

What was the problem/Ticket Number

I only want to re-run eslint and watch files for changes until all errors are resolved. Once all errors are resolved I want to quit watching.

How does this solve the problem?

Adds boolean command line option --watch-until-no-errors default false which is used to exit gracefully when linting returned no errors and watching is enabled.

How to duplicate the issue

you can now use eslint-watch like this:

esw --fix --watch --watch-until-no-errors --ext \".js,.ts,.vue\" --ignore-path .gitignore . && yarn run dev

bf avatar Mar 02 '23 14:03 bf