Repository navigation
Expand file tree
/
Copy path.editorconfig
More file actions
137 lines (98 loc) · 2.3 KB
/
Copy path.editorconfig
File metadata and controls
137 lines (98 loc) · 2.3 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# SPDX-License-Identifier: MPL-2.0
# Hyperpolymath estate canonical .editorconfig (standards#343 phase 1)
# Canon lives in xmlpull-zig; do not add a per-repo name to this header.
# https://editorconfig.org
root = true
# --- Estate baseline -------------------------------------------------------
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
# --- Prose: trailing whitespace is significant -----------------------------
[*.md]
trim_trailing_whitespace = false
[*.adoc]
trim_trailing_whitespace = false
# --- 4-space languages -----------------------------------------------------
[*.rs]
indent_size = 4
[*.zig]
indent_size = 4
[*.jl]
indent_size = 4
[*.c]
indent_size = 4
[*.h]
indent_size = 4
[*.php]
indent_size = 4
# --- 3-space languages (Ada / GNAT house style) ----------------------------
[*.ada]
indent_size = 3
[*.adb]
indent_size = 3
[*.ads]
indent_size = 3
[*.gpr]
indent_size = 3
# --- 2-space languages (explicit; matches the [*] default) -----------------
[*.hs]
indent_size = 2
[*.ex]
indent_size = 2
[*.exs]
indent_size = 2
[*.ncl]
indent_size = 2
[*.rkt]
indent_size = 2
[*.scm]
indent_size = 2
[*.idr]
indent_size = 2
[*.ipkg]
indent_size = 2
[*.k9]
indent_size = 2
[*.agda]
indent_size = 2
[*.lean]
indent_size = 2
[*.ebnf]
indent_size = 2
# --- Tab-mandatory formats -------------------------------------------------
# --- Task runners ----------------------------------------------------------
[Justfile]
indent_style = space
indent_size = 4
[*.just]
indent_style = space
indent_size = 4
[Mustfile]
indent_style = space
indent_size = 4
# --- Platform-mandated line endings ----------------------------------------
# Windows batch/PowerShell hosts require CRLF; keep in step with .gitattributes.
[*.bat]
end_of_line = crlf
[*.cmd]
end_of_line = crlf
[*.ps1]
end_of_line = crlf
# --- Legacy / retired toolchains (retained for byte hygiene only) ----------
# ReScript (LANGUAGE-POLICY 1.2) and Nix (retired 2026-06-01) are no longer
# adopted for new work. These sections are inert where the files are absent and
# keep surviving files from drifting. Removal is a per-repo judgement.
[*.go]
indent_style = tab
[*.nix]
indent_size = 2
[*.res]
indent_size = 2
[*.resi]
indent_size = 2
[Makefile]
indent_style = tab