Add rules for TOML formatting with tombi

This commit is contained in:
Xury Greer
2026-08-08 16:09:50 -07:00
parent f497669831
commit 5962cad103
3 changed files with 24 additions and 0 deletions

5
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"recommendations": [
"tombi-toml.tombi",
],
}

View File

@@ -1,5 +1,9 @@
{
"editor.formatOnSave": true,
"[toml]": {
"editor.defaultFormatter": "tombi-toml.tombi",
"editor.formatOnSave": true,
},
"[json]": {
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,

15
tombi.toml Normal file
View File

@@ -0,0 +1,15 @@
[format.rules]
indent-style = "space"
indent-width = 4
line-width = 80
[[schemas]]
path = "https://json.schemastore.org/pyproject.json"
include = ["pyproject.toml"]
[schemas.format.rules]
table-keys-order.enabled = false
[[schemas]]
path = "https://json.schemastore.org/tombi.json"
include = ["tombi.toml"]