detectLinter
Chooses the linter from the configuration files at the project root.
An eslint.config.* file wins, so a project that formats with Biome and lints with ESLint gets ESLint. Otherwise a biome.json / biome.jsonc picks Biome, and a project with neither gets ESLint, as before Biome was supported.
Import:
import { detectLinter } from '@mnaoumov/typescript-dev-toolkit/linters/auto';Signature:
function detectLinter(): LinterReturns: Linter — The linter to run.
Links to this page: