-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathtaplo.toml
More file actions
63 lines (57 loc) · 1.75 KB
/
taplo.toml
File metadata and controls
63 lines (57 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# taplo.toml - TOML formatting configuration for the repository
# Included files for formatting and validation
include = [
"pkg/**/*.toml",
"app/packages/react-native-rust-bridge/cpp/rustbridge/**/*.toml",
"noir/**/*.toml",
".cargo/**/*.toml",
".config/**/*.toml",
".github/**/*.toml",
"*.toml",
]
# Exclude generated workspace hack manifest from formatting
exclude = ["pkg/workspace-hack/Cargo.toml"]
# Global formatting rules
[formatting]
# Don't align entries (key = value) to the same column
align_entries = false
# Don't align comments to the same column
align_comments = false
# Allow trailing commas in arrays
array_trailing_comma = true
# Auto-expand arrays to multiple lines for better readability
array_auto_expand = true
# Don't auto-collapse arrays - keep them multi-line
array_auto_collapse = false
# Keep arrays compact when possible
compact_arrays = true
# Don't make inline tables compact
compact_inline_tables = false
# Don't make entries compact
compact_entries = false
# Maximum column width for formatting
column_width = 100
# Don't indent tables
indent_tables = false
# Don't indent entries
indent_entries = false
# Ensure trailing newline at end of file
trailing_newline = true
# Allow single blank lines between sections
allowed_blank_lines = 1
# Use 2 spaces for indentation
indent_string = " "
# Don't reorder keys (preserve existing order)
reorder_keys = false
# Apply to all TOML files
[[rule]]
include = ["**/*.toml"]
formatting = { reorder_keys = false }
# Special rules for Cargo.toml files to preserve dependency order
[[rule]]
include = ["**/Cargo.toml"]
formatting = { reorder_arrays = false }
# Special rules for workspace root Cargo.toml
[[rule]]
include = ["Cargo.toml"]
formatting = { reorder_keys = false, reorder_arrays = false }