Taplo
Taplo configuration file
| Type | object |
|---|---|
| File match |
.taplo.toml
taplo.toml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/taplo/latest.json |
| Source | https://www.schemastore.org/taplo.json |
Validate with Lintel
npx @lintel/lintel check
Properties
Files to exclude (ignore).
A list of Unix-like glob path patterns. Globstars (**) are supported.
Relative paths are not relative to the configuration file, but rather depends on the tool using the configuration.
This has priority over include.
Formatting options.
Files to include.
A list of Unix-like glob path patterns. Globstars (**) are supported.
Relative paths are not relative to the configuration file, but rather depends on the tool using the configuration.
Omitting this property includes all files, however an empty array will include none.
Rules are used to override configurations by path and keys.
Schema validation options.
Definitions
All the formatting options.
Align consecutive comments after entries and items vertically.
This applies to comments that are after entries or array items.
Align entries vertically.
Entries that have table headers, comments, or blank lines between them are not aligned.
If align_comments is true, apply the alignment in cases where there's only one comment.
The maximum amount of consecutive blank lines allowed.
Automatically collapse arrays if they fit in one line.
The array won't be collapsed if it contains a comment.
Automatically expand arrays to multiple lines once they exceed the configured column_width.
Put trailing commas for multiline arrays.
Target maximum column width after which arrays are expanded into new lines.
This is best-effort and might not be accurate.
Omit whitespace padding inside single-line arrays.
Omit whitespace around =.
Omit whitespace padding inside inline tables.
Use CRLF line endings
Indent entries under tables.
Indentation to use, should be tabs or spaces but technically could be anything.
Indent subtables if they come in order.
Expand values (e.g.) inside inline tables where possible.
Alphabetically reorder array values that are not separated by blank lines.
Alphabetically reorder keys that are not separated by blank lines.
Add trailing newline to the source.
A plugin to extend Taplo's capabilities.
Optional settings for the plugin.
A rule to override options by either name or file.
Files that are excluded from this rule.
A list of Unix-like glob path patterns.
Relative paths are not relative to the configuration file, but rather depends on the tool using the configuration.
This has priority over include.
Formatting options.
Files this rule is valid for.
A list of Unix-like glob path patterns.
Relative paths are not relative to the configuration file, but rather depends on the tool using the configuration.
Omitting this property includes all files, however an empty array will include none.
Keys the rule is valid for in a document.
A list of Unix-like glob dotted key patterns.
This allows enabling the rule for specific paths in the document.
For example:
package.metadatawill enable the rule for everything inside thepackage.metadatatable, including itself.
If omitted, the rule will always be valid for all keys.
The name of the rule.
Used in taplo::<name> comments.
Schema validation options.
Options for schema validation and completion.
Schemas in rules with defined keys are ignored.
Whether the schema should be enabled or not.
Defaults to true if omitted.
A local file path to the schema, overrides url if set.
URLs are also accepted here, but it's not a guarantee and might change in newer releases. Please use the url field instead whenever possible.
A full absolute URL to the schema.
The url of the schema, supported schemes are http, https, file and taplo.