rizowski / eslint-watch

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

Is it possible to trigger something on error? #129

Closed lucastobrazil closed 7 years ago

lucastobrazil commented 7 years ago

Hey there, Love this project! the setup was smooth and easy :)

This is more of a question rather than an issue... I'd like to have the ability to make my terminal 'beep' if there is an error while watching. Is it possible to hook into ESW to trigger beep() for instance (from this project: https://github.com/feross/beepbeep)?

Cheers, Lucas

rizowski commented 7 years ago

As is, there isn't a way to currently do this. Do you have any ideas on how this could be accomplished?

lucastobrazil commented 7 years ago

@rizowski I know for running eslint in a gulp task you can usually pipe in other functions (or use gulp-notify https://github.com/mikaelbr/gulp-notify) - is there any kind of callbacks that could be hooked into with eslint-watch?

rizowski commented 7 years ago

Whoops sorry for such a late response. No there isn't a way. This project was meant to just provide a way to have a file watch for eslint. It doesn't provide much more than what the CLI can offer.