Type object
File match dprint.json dprint.jsonc .dprint.json .dprint.jsonc
Schema URL https://catalog.lintel.tools/schemas/schemastore/dprint-json/latest.json
Source https://dprint.dev/schemas/v0.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Schema for a dprint configuration file.

Properties

$schema string

The JSON schema reference. Normally you shouldn't bother to provide this as the dprint vscode editor extension will handle constructing the schema for you based on the plugins provided.

incremental boolean

Whether to format files only when they change.

Default: true
extends string | string[]

Configurations to extend.

lineWidth number

The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.

indentWidth number

The number of characters for an indent.

useTabs boolean

Whether to use tabs (true) or spaces (false) for indentation.

newLineKind string

The kind of newline to use.

One of: const: "auto" const: "auto", const: "crlf" const: "crlf", const: "lf" const: "lf", const: "system" const: "system"
includes string[]

Array of patterns (globs) to use to find files to format.

excludes string[]

Array of patterns (globs) to exclude files or directories to format.

plugins string[]

Array of plugin URLs to format files.