Lintel Configuration
Configuration for the Lintel JSON/YAML schema validator.
| Type | object |
|---|---|
| File match |
lintel.toml
**/lintel.toml
|
| Schema URL | https://catalog.lintel.tools/schemas/lintel/lintel-toml/latest.json |
Validate with Lintel
npx @lintel/lintel check
Configuration file for the Lintel JSON/YAML schema validator.
Lintel walks up the directory tree from the validated file looking for
lintel.toml files and merges them together. Settings in child directories
take priority over parent directories. Set root = true to stop the upward
search.
Place lintel.toml at your project root (or any subdirectory that needs
different settings).
Properties
Mark this configuration file as the project root.
When true, Lintel stops walking up the directory tree and will not
merge any lintel.toml files from parent directories. Use this at your
repository root to prevent inheriting settings from enclosing
directories.
Glob patterns for files to exclude from validation.
Matched against file paths relative to the working directory. Standard
glob syntax is supported: * matches within a single directory, **
matches across directory boundaries.
[]
Custom schema-to-file mappings.
Keys are glob patterns matched against file paths; values are schema
URLs (or //-prefixed local paths) to apply. These mappings take
priority over catalog auto-detection but are overridden by inline
$schema properties and YAML modeline comments.
Example:
[schemas]
"config/*.yaml" = "<https://json.schemastore.org/github-workflow.json>"
"myschema.json" = "//schemas/custom.json"
{}
Disable the built-in Lintel catalog.
When true, only SchemaStore and any additional registries listed in
registries are used for schema auto-detection. The default Lintel
catalog (which provides curated schema mappings) is skipped.
Additional schema catalog URLs to fetch alongside SchemaStore.
Each entry should be a URL pointing to a JSON file in SchemaStore
catalog format ({"schemas": [...]}).
Registries from child configs appear first, followed by parent registries (duplicates are removed). This lets child directories add project-specific catalogs while inheriting organization-wide ones.
[]
Schema URI rewrite rules.
Keys are URI prefixes to match; values are replacement prefixes. The
longest matching prefix wins. Use // as a value prefix to reference
paths relative to the directory containing lintel.toml.
Example:
[rewrite]
"<http://localhost:8000/>" = "//schemas/"
This rewrites <http://localhost:8000/foo.json> to
//schemas/foo.json, which then resolves to a local file relative to
the config directory.
{}
Per-file or per-schema override rules.
In TOML, each override is written as a [[override]] block (double
brackets). Earlier entries take priority; child config overrides come
before parent config overrides after merging.
Formatting configuration for lintel format.
Definitions
Conditional settings applied to files or schemas matching specific patterns.
Each [[override]] block targets files by path glob, schemas by URI glob,
or both. When a file matches, the settings in that block override the
top-level defaults. Earlier entries (from child configs) take priority over
later entries (from parent configs).
In TOML, override blocks are written as [[override]] (double brackets) to
create an array of tables.
Glob patterns matched against instance file paths (relative to the working directory).
Use standard glob syntax: * matches any single path component, **
matches zero or more path components, and ? matches a single
character.
[]
Glob patterns matched against schema URIs.
Each pattern is tested against both the original URI (before rewrite
rules) and the resolved URI (after rewrites and // prefix
resolution), so you can match on either form.
[]
Enable or disable JSON Schema format keyword validation for matching
files.
When true, string values are validated against built-in formats such
as date-time, email, uri, etc. When false, format annotations
are ignored during validation. When omitted, this override does not
affect the format validation setting and the next matching override (or
the default of true) applies.
Formatting configuration.
Controls how lintel format behaves. The dprint field passes
configuration through to the dprint-based formatters (JSON, TOML,
Markdown) and pretty_yaml.
dprint formatter configuration.
Global fields (lineWidth, indentWidth, useTabs, newLineKind)
apply to all formatters. Per-plugin sections (json, toml,
markdown) override the global defaults for that plugin.
Schema for a dprint configuration file.
The JSON schema URL for editor validation and autocompletion.
The dprint VS Code extension automatically constructs a composite schema based on the installed plugins, so you usually don't need to set this manually.
Only format files that have changed since the last formatting run.
When true (the default), dprint tracks which files have been
formatted and skips unchanged files on subsequent runs. Set to
false to always reformat all matched files.
Can also be toggled via the --incremental / --incremental=false
CLI flag.
One or more configuration files to extend.
Can be a single path/URL or an array of paths/URLs. Properties from extended configs are merged, with the current file taking precedence. Earlier entries in an array take priority over later ones.
Supports the ${configDir} variable (resolves to the directory of
the current config file) and ${originConfigDir} (resolves to the
directory of the original/root config file).
When extending remote configs (URLs), includes and non-Wasm
plugins entries are ignored for security.
The maximum line width the formatter tries to stay under.
The formatter may exceed this width in certain cases where breaking the line would produce worse output. This is a global default that individual plugins can override in their configuration sections.
The number of characters for each indent level.
When useTabs is true, this controls the visual width of each
tab character. When useTabs is false, this is the number of
spaces inserted per indent level. This is a global default that
individual plugins can override in their configuration sections.
Whether to use tabs (true) or spaces (false) for indentation.
This is a global default that individual plugins can override in their configuration sections.
The newline character style to use when formatting.
This is a global default that individual plugins can override in their configuration sections.
Glob patterns for files to include in formatting.
When specified, only files matching at least one of these patterns
are formatted. When omitted, all files matched by installed plugins
are formatted (respecting excludes).
Uses gitignore-style glob syntax.
Glob patterns for files or directories to exclude from formatting.
Uses gitignore-style glob syntax. Files already ignored by
.gitignore are excluded automatically. Prefix a pattern with !
to un-exclude files that were previously excluded.
Plugin URLs or local file paths.
Each entry is a URL to a WebAssembly plugin (.wasm) or a local
file path. The order determines precedence when multiple plugins
can handle the same file extension — the first matching plugin
wins.
Can also be specified via the --plugins CLI flag.
TypeScript / JavaScript plugin configuration.
JSON plugin configuration.
TOML plugin configuration.
Markdown plugin configuration.
One or more configuration files to extend.
Can be a single path/URL string or an array of paths/URLs. Properties from extended configs are merged, with the current file taking precedence. Earlier entries in an array take priority over later ones.
Supports the ${configDir} variable (resolves to the directory
containing the current config file) and ${originConfigDir} (resolves
to the directory of the original/root config file).
When extending remote configs (URLs), includes and non-Wasm plugins
entries are ignored for security.
The newline character style to use when formatting files.
Configuration for the dprint TypeScript / JavaScript plugin.
Whether the configuration is not allowed to be overridden or extended.
File patterns to associate with this plugin.
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: "never"
See: https://dprint.dev/plugins/typescript/config/#argumentspreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#argumentspreferSingleLine
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#argumentsspaceAround
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#argumentstrailingCommas
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: "never"
See: https://dprint.dev/plugins/typescript/config/#arrayExpressionpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#arrayExpressionpreferSingleLine
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#arrayExpressionspaceAround
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#arrayExpressiontrailingCommas
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#arrayPatternpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#arrayPatternpreferSingleLine
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#arrayPatternspaceAround
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#arrayPatterntrailingCommas
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#arrowFunctionbracePosition
Whether to use parentheses around a single parameter in an arrow function.
Default: "maintain"
See: https://dprint.dev/plugins/typescript/config/#arrowFunctionuseParentheses
Whether to force a line per expression when spanning multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#binaryExpressionlinePerExpression
Where to place the operator for expressions that span multiple lines.
Default: "nextLine"
See: https://dprint.dev/plugins/typescript/config/#binaryExpressionoperatorPosition
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#binaryExpressionpreferSingleLine
Whether to surround the operator in a binary expression with spaces.
Default: true
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#bracePosition
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#catchClausespaceAround
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#classDeclarationbracePosition
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#classExpressionbracePosition
Forces a space after the double slash in a comment line.
Default: true
See: https://dprint.dev/plugins/typescript/config/#commentLineforceSpaceAfterSlashes
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#computedpreferSingleLine
Where to place the operator for expressions that span multiple lines.
Default: "nextLine"
See: https://dprint.dev/plugins/typescript/config/#conditionalExpressionoperatorPosition
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#conditionalExpressionpreferSingleLine
Where to place the operator for expressions that span multiple lines.
Default: "nextLine"
See: https://dprint.dev/plugins/typescript/config/#conditionalTypeoperatorPosition
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#conditionalTypepreferSingleLine
Whether to add a space after the new keyword in a construct signature.
Default: false
See: https://dprint.dev/plugins/typescript/config/#constructSignaturespaceAfterNewKeyword
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#constructorbracePosition
Whether to add a space before the parentheses of a constructor.
Default: false
See: https://dprint.dev/plugins/typescript/config/#constructorspaceBeforeParentheses
Whether to add a space after the new keyword in a constructor type.
Default: false
See: https://dprint.dev/plugins/typescript/config/#constructorTypespaceAfterNewKeyword
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#decoratorspreferSingleLine
Top level configuration that sets the configuration to what is used in Deno.
Default: false
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#doWhileStatementbracePosition
Where to place the next control flow within a control flow statement.
Default: "sameLine"
See: https://dprint.dev/plugins/typescript/config/#doWhileStatementnextControlFlowPosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#doWhileStatementpreferHanging
Whether to add a space after the while keyword in a do while statement.
Default: true
See: https://dprint.dev/plugins/typescript/config/#doWhileStatementspaceAfterWhileKeyword
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#doWhileStatementspaceAround
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#enumDeclarationbracePosition
How to space the members of an enum.
Default: "maintain"
See: https://dprint.dev/plugins/typescript/config/#enumDeclarationmemberSpacing
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#enumDeclarationtrailingCommas
If code import/export specifiers should be forced to be on multiple lines.
Default: "never"
See: https://dprint.dev/plugins/typescript/config/#exportDeclarationforceMultiLine
If code should be forced to be on a single line if able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#exportDeclarationforceSingleLine
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#exportDeclarationpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#exportDeclarationpreferSingleLine
The kind of sort ordering to use.
Default: "caseInsensitive"
See: https://dprint.dev/plugins/typescript/config/#exportDeclarationsortNamedExports
The kind of sort ordering to use for typed imports and exports.
Default: "none"
See: https://dprint.dev/plugins/typescript/config/#exportDeclarationsortTypeOnlyExports
Whether to add spaces around named exports in an export declaration.
Default: true
See: https://dprint.dev/plugins/typescript/config/#exportDeclarationspaceSurroundingNamedExports
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#exportDeclarationtrailingCommas
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#extendsClausepreferHanging
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#forInStatementbracePosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#forInStatementpreferHanging
Where to place the expression of a statement that could possibly be on one line (ex. if (true) console.log(5);).
Default: "maintain"
See: https://dprint.dev/plugins/typescript/config/#forInStatementsingleBodyPosition
Whether to add a space after the for keyword in a "for in" statement.
Default: true
See: https://dprint.dev/plugins/typescript/config/#forInStatementspaceAfterForKeyword
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#forInStatementspaceAround
If braces should be used or not.
Default: "whenNotSingleLine"
See: https://dprint.dev/plugins/typescript/config/#forInStatementuseBraces
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#forOfStatementbracePosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#forOfStatementpreferHanging
Where to place the expression of a statement that could possibly be on one line (ex. if (true) console.log(5);).
Default: "maintain"
See: https://dprint.dev/plugins/typescript/config/#forOfStatementsingleBodyPosition
Whether to add a space after the for keyword in a "for of" statement.
Default: true
See: https://dprint.dev/plugins/typescript/config/#forOfStatementspaceAfterForKeyword
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#forOfStatementspaceAround
If braces should be used or not.
Default: "whenNotSingleLine"
See: https://dprint.dev/plugins/typescript/config/#forOfStatementuseBraces
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#forStatementbracePosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#forStatementpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#forStatementpreferSingleLine
Where to place the expression of a statement that could possibly be on one line (ex. if (true) console.log(5);).
Default: "maintain"
See: https://dprint.dev/plugins/typescript/config/#forStatementsingleBodyPosition
Whether to add a space after the for keyword in a "for" statement.
Default: true
See: https://dprint.dev/plugins/typescript/config/#forStatementspaceAfterForKeyword
Whether to add a space after the semi-colons in a "for" statement.
Default: true
See: https://dprint.dev/plugins/typescript/config/#forStatementspaceAfterSemiColons
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#forStatementspaceAround
If braces should be used or not.
Default: "whenNotSingleLine"
See: https://dprint.dev/plugins/typescript/config/#forStatementuseBraces
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#functionDeclarationbracePosition
Whether to add a space before the parentheses of a function declaration.
Default: false
See: https://dprint.dev/plugins/typescript/config/#functionDeclarationspaceBeforeParentheses
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#functionExpressionbracePosition
Whether to add a space after the function keyword of a function expression.
Default: false
See: https://dprint.dev/plugins/typescript/config/#functionExpressionspaceAfterFunctionKeyword
Whether to add a space before the parentheses of a function expression.
Default: false
See: https://dprint.dev/plugins/typescript/config/#functionExpressionspaceBeforeParentheses
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#getAccessorbracePosition
Whether to add a space before the parentheses of a get accessor.
Default: false
See: https://dprint.dev/plugins/typescript/config/#getAccessorspaceBeforeParentheses
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#ifStatementbracePosition
Where to place the next control flow within a control flow statement.
Default: "sameLine"
See: https://dprint.dev/plugins/typescript/config/#ifStatementnextControlFlowPosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#ifStatementpreferHanging
Where to place the expression of a statement that could possibly be on one line (ex. if (true) console.log(5);).
Default: "maintain"
See: https://dprint.dev/plugins/typescript/config/#ifStatementsingleBodyPosition
Whether to add a space after the if keyword in an "if" statement.
Default: true
See: https://dprint.dev/plugins/typescript/config/#ifStatementspaceAfterIfKeyword
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#ifStatementspaceAround
If braces should be used or not.
Default: "whenNotSingleLine"
See: https://dprint.dev/plugins/typescript/config/#ifStatementuseBraces
The text to use for a file ignore comment (ex. // dprint-ignore-file).
Default: "dprint-ignore-file"
See: https://dprint.dev/plugins/typescript/config/#ignoreFileCommentText
The text to use for an ignore comment (ex. // dprint-ignore).
Default: "dprint-ignore"
See: https://dprint.dev/plugins/typescript/config/#ignoreNodeCommentText
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#implementsClausepreferHanging
If code import/export specifiers should be forced to be on multiple lines.
Default: "never"
See: https://dprint.dev/plugins/typescript/config/#importDeclarationforceMultiLine
If code should be forced to be on a single line if able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#importDeclarationforceSingleLine
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#importDeclarationpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#importDeclarationpreferSingleLine
The kind of sort ordering to use.
Default: "caseInsensitive"
See: https://dprint.dev/plugins/typescript/config/#importDeclarationsortNamedImports
The kind of sort ordering to use for typed imports and exports.
Default: "none"
See: https://dprint.dev/plugins/typescript/config/#importDeclarationsortTypeOnlyImports
Whether to add spaces around named imports in an import declaration.
Default: true
See: https://dprint.dev/plugins/typescript/config/#importDeclarationspaceSurroundingNamedImports
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#importDeclarationtrailingCommas
The number of columns for an indent.
Default: 2
See: https://dprint.dev/plugins/typescript/config/#indentWidth
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#interfaceDeclarationbracePosition
If the end angle bracket of a jsx open element or self closing element should be on the same or next line when the attributes span multiple lines.
Default: "nextLine"
See: https://dprint.dev/plugins/typescript/config/#jsxbracketPosition
Forces newlines surrounding the content of JSX elements.
Default: false
See: https://dprint.dev/plugins/typescript/config/#jsxforceNewLinesSurroundingContent
Surrounds the top-most JSX element or fragment in parentheses when it spans multiple lines.
Default: "prefer"
See: https://dprint.dev/plugins/typescript/config/#jsxmultiLineParens
How to use single or double quotes in JSX attributes.
Default: "preferDouble"
See: https://dprint.dev/plugins/typescript/config/#jsxquoteStyle
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#jsxAttributespreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#jsxAttributespreferSingleLine
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#jsxElementpreferSingleLine
Whether to add a space surrounding the expression of a JSX container.
Default: false
See: https://dprint.dev/plugins/typescript/config/#jsxExpressionContainerspaceSurroundingExpression
If the end angle bracket of a jsx open element or self closing element should be on the same or next line when the attributes span multiple lines.
Default: "nextLine"
See: https://dprint.dev/plugins/typescript/config/#jsxOpeningElementbracketPosition
If the end angle bracket of a jsx open element or self closing element should be on the same or next line when the attributes span multiple lines.
Default: "nextLine"
See: https://dprint.dev/plugins/typescript/config/#jsxSelfClosingElementbracketPosition
Whether to add a space before a JSX element's slash when self closing.
Default: true
See: https://dprint.dev/plugins/typescript/config/#jsxSelfClosingElementspaceBeforeSlash
The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.
Default: 120
See: https://dprint.dev/plugins/typescript/config/#lineWidth
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#mappedTypepreferSingleLine
Whether to force a line per expression when spanning multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#memberExpressionlinePerExpression
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#memberExpressionpreferSingleLine
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#methodbracePosition
Whether to add a space before the parentheses of a method.
Default: false
See: https://dprint.dev/plugins/typescript/config/#methodspaceBeforeParentheses
The kind of sort ordering to use.
Default: "caseInsensitive"
See: https://dprint.dev/plugins/typescript/config/#modulesortExportDeclarations
The kind of sort ordering to use.
Default: "caseInsensitive"
See: https://dprint.dev/plugins/typescript/config/#modulesortImportDeclarations
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#moduleDeclarationbracePosition
The kind of newline to use.
Default: "lf"
See: https://dprint.dev/plugins/typescript/config/#newLineKind
Where to place the next control flow within a control flow statement.
Default: "sameLine"
See: https://dprint.dev/plugins/typescript/config/#nextControlFlowPosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#objectExpressionpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#objectExpressionpreferSingleLine
Whether to add a space surrounding the properties of a single line object expression.
Default: true
See: https://dprint.dev/plugins/typescript/config/#objectExpressionspaceSurroundingProperties
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#objectExpressiontrailingCommas
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#objectPatternpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#objectPatternpreferSingleLine
Whether to add a space surrounding the properties of a single line object pattern.
Default: true
See: https://dprint.dev/plugins/typescript/config/#objectPatternspaceSurroundingProperties
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#objectPatterntrailingCommas
Where to place the operator for expressions that span multiple lines.
Default: "nextLine"
See: https://dprint.dev/plugins/typescript/config/#operatorPosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: "never"
See: https://dprint.dev/plugins/typescript/config/#parameterspreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#parameterspreferSingleLine
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#parametersspaceAround
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#parameterstrailingCommas
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#parenExpressionspaceAround
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#parenthesespreferSingleLine
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#preferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#preferSingleLine
Change when properties in objects are quoted.
Default: "preserve"
See: https://dprint.dev/plugins/typescript/config/#quoteProps
How to use single or double quotes.
Default: "alwaysDouble"
See: https://dprint.dev/plugins/typescript/config/#quoteStyle
How semi-colons should be used.
Default: "prefer"
See: https://dprint.dev/plugins/typescript/config/#semiColons
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#sequenceExpressionpreferHanging
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#setAccessorbracePosition
Whether to add a space before the parentheses of a set accessor.
Default: false
See: https://dprint.dev/plugins/typescript/config/#setAccessorspaceBeforeParentheses
Where to place the expression of a statement that could possibly be on one line (ex. if (true) console.log(5);).
Default: "maintain"
See: https://dprint.dev/plugins/typescript/config/#singleBodyPosition
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#spaceAround
Whether to add a space surrounding the properties of single line object-like nodes.
Default: true
See: https://dprint.dev/plugins/typescript/config/#spaceSurroundingProperties
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#staticBlockbracePosition
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#switchCasebracePosition
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#switchStatementbracePosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#switchStatementpreferHanging
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#switchStatementspaceAround
Whether to add a space before the literal in a tagged template.
Default: false
See: https://dprint.dev/plugins/typescript/config/#taggedTemplatespaceBeforeLiteral
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#trailingCommas
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#tryStatementbracePosition
Where to place the next control flow within a control flow statement.
Default: "sameLine"
See: https://dprint.dev/plugins/typescript/config/#tryStatementnextControlFlowPosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: "never"
See: https://dprint.dev/plugins/typescript/config/#tupleTypepreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#tupleTypepreferSingleLine
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#tupleTypespaceAround
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#tupleTypetrailingCommas
Whether to add a space before the colon of a type annotation.
Default: false
See: https://dprint.dev/plugins/typescript/config/#typeAnnotationspaceBeforeColon
Whether to add a space before the expression in a type assertion.
Default: true
See: https://dprint.dev/plugins/typescript/config/#typeAssertionspaceBeforeExpression
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#typeLiteralpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#typeLiteralpreferSingleLine
The kind of separator to use in type literals.
Default: "semiColon"
See: https://dprint.dev/plugins/typescript/config/#typeLiteralseparatorKind
The kind of separator to use in type literals.
Default: "semiColon"
See: https://dprint.dev/plugins/typescript/config/#typeLiteralseparatorKindmultiLine
The kind of separator to use in type literals.
Default: "semiColon"
See: https://dprint.dev/plugins/typescript/config/#typeLiteralseparatorKindsingleLine
Whether to add a space surrounding the properties of a single line type literal.
Default: true
See: https://dprint.dev/plugins/typescript/config/#typeLiteralspaceSurroundingProperties
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#typeLiteraltrailingCommas
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: "never"
See: https://dprint.dev/plugins/typescript/config/#typeParameterspreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#typeParameterspreferSingleLine
If trailing commas should be used.
Default: "onlyMultiLine"
See: https://dprint.dev/plugins/typescript/config/#typeParameterstrailingCommas
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#unionAndIntersectionTypepreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#unionAndIntersectionTypepreferSingleLine
If braces should be used or not.
Default: "whenNotSingleLine"
See: https://dprint.dev/plugins/typescript/config/#useBraces
Whether to use tabs (true) or spaces (false).
Default: false
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#variableStatementpreferHanging
If code should revert back from being on multiple lines to being on a single line when able.
Default: false
See: https://dprint.dev/plugins/typescript/config/#variableStatementpreferSingleLine
Where to place the opening brace.
Default: "sameLineUnlessHanging"
See: https://dprint.dev/plugins/typescript/config/#whileStatementbracePosition
Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.
Default: false
See: https://dprint.dev/plugins/typescript/config/#whileStatementpreferHanging
Where to place the expression of a statement that could possibly be on one line (ex. if (true) console.log(5);).
Default: "maintain"
See: https://dprint.dev/plugins/typescript/config/#whileStatementsingleBodyPosition
Whether to add a space after the while keyword in a while statement.
Default: true
See: https://dprint.dev/plugins/typescript/config/#whileStatementspaceAfterWhileKeyword
Whether to place spaces around enclosed expressions.
Default: false
See: https://dprint.dev/plugins/typescript/config/#whileStatementspaceAround
If braces should be used or not.
Default: "whenNotSingleLine"
See: https://dprint.dev/plugins/typescript/config/#whileStatementuseBraces
Configuration for the dprint JSON plugin.
Whether the configuration is not allowed to be overridden or extended.
File patterns to associate with this plugin.
If arrays and objects should collapse to a single line if it would be below the line width.
Default: false
See: https://dprint.dev/plugins/json/config/#arraypreferSingleLine
Forces a space after slashes. For example: // comment instead of //comment
Default: true
See: https://dprint.dev/plugins/json/config/#commentLineforceSpaceAfterSlashes
Top level configuration that sets the configuration to what is used in Deno.
Default: false
The text to use for an ignore comment (ex. // dprint-ignore).
Default: "dprint-ignore"
See: https://dprint.dev/plugins/json/config/#ignoreNodeCommentText
The number of characters for an indent.
Default: 2
When trailingCommas is jsonc, treat these files as JSONC and use trailing commas (ex. ["tsconfig.json", ".vscode/settings.json"]).
See: https://dprint.dev/plugins/json/config/#jsonTrailingCommaFiles
The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.
Default: 120
If arrays and objects should collapse to a single line if it would be below the line width.
Default: false
See: https://dprint.dev/plugins/json/config/#objectpreferSingleLine
If arrays and objects should collapse to a single line if it would be below the line width.
Default: false
See: https://dprint.dev/plugins/json/config/#preferSingleLine
Whether to use trailing commas.
Default: "jsonc"
Whether to use tabs (true) or spaces (false).
Default: false
Configuration for the dprint TOML plugin.
Whether the configuration is not allowed to be overridden or extended.
File patterns to associate with this plugin.
Whether to apply sorting to a Cargo.toml file.
Default: true
See: https://dprint.dev/plugins/toml/config/#cargoapplyConventions
Whether to force a leading space in a comment.
Default: true
See: https://dprint.dev/plugins/toml/config/#commentforceLeadingSpace
The number of characters for an indent.
Default: 2
The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.
Default: 120
Whether to use tabs (true) or spaces (false).
Default: false
Configuration for the dprint Markdown plugin.
Whether the configuration is not allowed to be overridden or extended.
File patterns to associate with this plugin.
Top level configuration that sets the configuration to what is used in Deno.
Default: false
The character to use for emphasis/italics.
Default: "underscores"
See: https://dprint.dev/plugins/markdown/config/#emphasisKind
The style of heading to use for level 1 and level 2 headings. Level 3 and higher always use ATX headings.
Default: "atx"
See: https://dprint.dev/plugins/markdown/config/#headingKind
The text to use for an ignore directive (ex. <!-- dprint-ignore -->).
Default: "dprint-ignore"
See: https://dprint.dev/plugins/markdown/config/#ignoreDirective
The text to use for an ignore end directive (ex. <!-- dprint-ignore-end -->).
Default: "dprint-ignore-end"
See: https://dprint.dev/plugins/markdown/config/#ignoreEndDirective
The text to use for an ignore file directive (ex. <!-- dprint-ignore-file -->).
Default: "dprint-ignore-file"
See: https://dprint.dev/plugins/markdown/config/#ignoreFileDirective
The text to use for an ignore start directive (ex. <!-- dprint-ignore-start -->).
Default: "dprint-ignore-start"
See: https://dprint.dev/plugins/markdown/config/#ignoreStartDirective
The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.
Default: 80
The kind of newline to use.
Default: "lf"
See: https://dprint.dev/plugins/markdown/config/#newLineKind
The character to use for strong emphasis/bold.
Default: "asterisks"
Custom tag to file extension mappings for formatting code blocks. For example: { "markdown": "md" }
Text wrapping possibilities.
Default: "maintain"
The character to use for unordered lists.
Default: "dashes"
See: https://dprint.dev/plugins/markdown/config/#unorderedListKind
Configuration for a dprint plugin not covered by the typed plugin structs.
Known plugins (typescript, json, toml, markdown) have dedicated
typed structs. This catch-all is used for any other plugin name.
Prevent properties in this plugin section from being overridden by extended configurations.
File patterns to associate with this plugin.