AtomLinter / linter-eslint-node

ESLint plugin for Atom/Pulsar Linter (v8 and above)
https://web.pulsar-edit.dev/packages/linter-eslint-node
MIT License
4 stars 3 forks source link

fix: don't suspend because of non-project files #34

Closed savetheclocktower closed 1 year ago

savetheclocktower commented 1 year ago

This was a silly oversight on my part. I'd made it so that we suspend the worker and hibernate when the worker reports it failed to lint a file because of a lack of an .eslintrc. But that can happen when you're editing a non-project file, like your own Atom init-file.

So if the no-config error came from a non-project file, we should ignore it.

While I was at it, I made it so that we report a reason in the console whenever we suspend.