---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/dev-tools/interfaces/LintCapability.md
description: A linter capability declaration.
---

# Interface: LintCapability

Defined in: [src/batteries/dev\_tools/types.ts:103](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L103)

A linter capability declaration.

## Properties

| Property                                      | Type                                               | Description                                                                      | Defined in                                                                                                                 |
| --------------------------------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|  `extensions` | readonly `string`\[]                                | Extensions participating in this selection pass.                                 | [src/batteries/dev\_tools/types.ts:105](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L105) |
|  `fixable`       | `boolean`                                          | Whether this linter may receive `fix: true`; generating linters must be fixable. | [src/batteries/dev\_tools/types.ts:107](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L107) |
|  `generates?`  | `boolean`                                          | Allows output when the invocation has no input paths.                            | [src/batteries/dev\_tools/types.ts:115](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L115) |
|  `inPlace?`      | `boolean`                                          | Selects disk-mutating execution through the restricted access façade.            | [src/batteries/dev\_tools/types.ts:109](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L109) |
|  `needs?`          | readonly (`"delete"` | `"rename"` | `"mkdir"`)\[] | Filesystem operations granted to an in-place capability; duplicates are ignored. | [src/batteries/dev\_tools/types.ts:113](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L113) |
|  `scope?`          | readonly `string`\[]                                | Glob permission used for selection and in-place authorization.                   | [src/batteries/dev\_tools/types.ts:111](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L111) |

## Methods

### lint()

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

Defined in: [src/batteries/dev\_tools/types.ts:117](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L117)

Runs lint and returns diagnostics and any permitted fix delta.

#### Parameters

| Parameter | Type                            |
| --------- | ------------------------------- |
| `request` | [`LintRequest`](LintRequest.md) |

#### Returns

`Promise`<[`WorkspaceDelta`](WorkspaceDelta.md)>
