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

Add NodePathTester tests #8

Closed savetheclocktower closed 2 years ago

savetheclocktower commented 2 years ago

I've also got an interest in reducing how much this package does in projects without ESLint installed, or in windows that aren't even JavaScript projects. Ideally I'd like to kill the worker once it's clear it's not needed, but for now all I'm interested in doing is not sending a job to the worker when we know what the outcome will be.

savetheclocktower commented 2 years ago

OK, I implemented the worker-killing after all. I needed JobManager to have a better handle on the worker life-cycle anyway. This lets us defer worker creation until the first linting job, and to go into “sleep mode” eagerly, since we can easily restart the worker if we think we'll need it.