Skip to content
1 min read · 188 words

Interface: LintCapability

Defined in: src/batteries/dev_tools/types.ts:103

A linter capability declaration.

Properties

PropertyTypeDescriptionDefined in
extensionsreadonly string[]Extensions participating in this selection pass.src/batteries/dev_tools/types.ts:105
fixablebooleanWhether this linter may receive fix: true; generating linters must be fixable.src/batteries/dev_tools/types.ts:107
generates?booleanAllows output when the invocation has no input paths.src/batteries/dev_tools/types.ts:115
inPlace?booleanSelects disk-mutating execution through the restricted access façade.src/batteries/dev_tools/types.ts:109
needs?readonly ("delete" | "rename" | "mkdir")[]Filesystem operations granted to an in-place capability; duplicates are ignored.src/batteries/dev_tools/types.ts:113
scope?readonly string[]Glob permission used for selection and in-place authorization.src/batteries/dev_tools/types.ts:111

Methods

lint()

ts
lint(request: LintRequest): Promise<WorkspaceDelta>;

Defined in: src/batteries/dev_tools/types.ts:117

Runs lint and returns diagnostics and any permitted fix delta.

Parameters

ParameterType
requestLintRequest

Returns

Promise<WorkspaceDelta>