Skip to content

Commit 8241a02

Browse files
committed
taplo: detailed configuration
1 parent 6f6e2a3 commit 8241a02

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

taplo.toml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
1-
# Sorts `Cargo.toml` dependencies. All other `.toml` files are formatted with the default config.
2-
#
3-
# https://taplo.tamasfe.dev/configuration/file.html#configuration-file
4-
5-
[formatting]
6-
reorder_keys = false
7-
8-
[[rule]]
9-
include = ["**/Cargo.toml"]
10-
keys = ["dependencies"]
11-
12-
[rule.formatting]
13-
reorder_keys = true
1+
# Sorts `Cargo.toml` dependencies. All other `.toml` files are formatted with the default config.
2+
#
3+
# https://taplo.tamasfe.dev/configuration/file.html#configuration-file
4+
5+
[formatting]
6+
align_comments = true
7+
align_entries = true
8+
#
9+
array_auto_collapse = false
10+
array_auto_expand = true
11+
array_trailing_comma = true
12+
#
13+
compact_arrays = false
14+
compact_entries = false
15+
compact_inline_tables = false
16+
#
17+
indent_entries = true
18+
indent_tables = true
19+
#
20+
reorder_arrays = true
21+
reorder_inline_tables = true
22+
reorder_keys = true
23+
#
24+
crlf = true

0 commit comments

Comments
 (0)