rizowski / eslint-watch

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

Enable error message that `eslint` is not installed #184

Closed 10hendersonm closed 1 year ago

10hendersonm commented 2 years ago

What was the problem/Ticket Number

closes #183

How does this solve the problem?

Checks error.code (ENOENT) rather than error.errno (-2) when displaying error.

https://github.com/sindresorhus/execa#handling-errors

How to duplicate the issue

  1. mv node_modules/.bin/eslint node_modules/.bin/eslint.bak
  2. Call eslint-watch