Skip to content

LintOptions

Parameters for the lint function.

Import:

import type { LintOptions } from '@mnaoumov/typescript-dev-toolkit/linters/auto';

Signature:

export interface LintOptions

Properties

PropertyTypeDescription
defaultConfigFilePath?string | undefinedThe configuration file used when the project has none of its own, as the chosen linter's own lint takes it.
linter?Linter | undefinedThe linter to run. Omitted, detectLinter chooses it.
paths?string[] | undefinedOptional file paths to lint. If omitted, lints the entire project.
shouldFix?boolean | undefinedWhether to fix linting issues automatically.

Links to this page: