yamlfmt
Configuration file for yamlfmt
| Type | object |
|---|---|
| File match |
.yamlfmt
yamlfmt.yml
yamlfmt.yaml
.yamlfmt.yaml
.yamlfmt.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/yamlfmt/latest.json |
| Source | https://www.schemastore.org/yamlfmt.json |
Validate with Lintel
npx @lintel/lintel check
Configuration file for yamlfmt
Properties
Use doublestar for include and exclude paths.
Continue formatting and do not exit with code 1 when an invalid YAML file is found.
Use gitignore files for exclude paths in addition to exclude patterns.
Path to the gitignore file used when gitignore exclusions are enabled.
Formatter settings. The basic formatter is the default formatter; kyaml is an alternate formatter type.
Definitions
Formatter settings for the basic formatter. The basic formatter is the default formatter.
Formatter type.
Indentation level in spaces for formatted YAML.
Include --- at document start.
Retain line breaks in formatted YAML.
Retain line breaks but collapse runs of blank lines to a single blank line.
Reject YAML anchors and aliases found in the document.
Maximum line length. A value of 0 means no limit.
Preserve newlines in folded block scalars that start with >.
Render block sequence items without an increased indent.
Drop the !!merge tag from well-formed merge keys that use <<.
Number of padding spaces inserted before line comments.
Trim trailing whitespace from lines.
Always add a newline at end of file.
Attempt to strip YAML directives before formatting and put them back afterwards.
Indentation level for block sequences. A value of 0 keeps the formatter default behavior.
Indent an array that appears at the root indentation level of the document.
Disable correction for alias nodes used as mapping keys.
Force arrays to be written in flow or block style. Leave empty to preserve the original style.
Force quoted scalars to use single or double quotes. Leave empty to preserve the original style.
Formatter settings for the kyaml formatter.
Formatter type.
Formatter settings. The basic formatter is the default formatter; kyaml is an alternate formatter type.