Skip to content

linters/auto

Lints the project with whichever linter the project configures: ESLint or Biome.

Interface Description
LintOptions Parameters for the lint function.
Function Description
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.
lint Lints the project with its linter.
Type Description
Linter A linter the toolkit runs.