Skip to content

Commit e576cb9

Browse files
authored
repo: add editorconfig defaults (#284)
Adds a root .editorconfig so editors use the repo defaults.
1 parent 5179e97 commit e576cb9

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{rs,py,pyi,java,kts,zig,zon}]
12+
indent_size = 4
13+
14+
[{pyproject.toml,uv.lock}]
15+
indent_size = 4
16+
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
[{*.go,go.mod}]
21+
indent_style = tab
22+
indent_size = tab
23+
tab_width = 4
24+
25+
[{Makefile,GNUmakefile,*.mk}]
26+
indent_style = tab
27+
indent_size = tab
28+
tab_width = 4

0 commit comments

Comments
 (0)