Add rules for TOML formatting with tombi
This commit is contained in:
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"tombi-toml.tombi",
|
||||
],
|
||||
}
|
||||
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@@ -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
15
tombi.toml
Normal 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"]
|
||||
Reference in New Issue
Block a user