classifyEslintExit
Decides which of the three things an ESLint run established.
A killed process is did-not-lint whatever its exit code says, because a signal means it was stopped rather than that it finished. An exit 1 carrying ESLint’s fatal-error banner is did-not-lint too: that is a crash npm relayed as a plain 1, not a finding.
Import:
import { classifyEslintExit } from '@mnaoumov/typescript-dev-toolkit/linters/eslint';Signature:
function classifyEslintExit(result: ExecResult): EslintExitKindParameters:
| Parameter | Type | Description |
|---|---|---|
result |
ExecResult | What the ESLint child did. |
Returns: EslintExitKind — The kind of ending it was.