-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.editorconfig
More file actions
42 lines (35 loc) · 1014 Bytes
/
Copy path.editorconfig
File metadata and controls
42 lines (35 loc) · 1014 Bytes
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
# EditorConfig — normalize whitespace, line endings, encoding across editors.
# https://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4
# YAML, JSON, and the GitHub Actions ecosystem conventionally use 2-space indent.
[*.{yml,yaml,json}]
indent_style = space
indent_size = 2
# Markdown — 2-space indent; keep trailing whitespace in case of intentional hard breaks.
[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false
# Makefiles require tab indentation (syntactic).
[Makefile]
indent_style = tab
indent_size = 4
# Go uses tabs (gofmt enforces).
[*.go]
indent_style = tab
indent_size = 4
# TypeScript / Svelte — project uses tabs (see existing files under web/src).
[*.{ts,js,svelte,html,css}]
indent_style = tab
indent_size = 4
# Shell scripts — 2 spaces is common; keep tabs optional per-file by not enforcing here.
[*.sh]
indent_style = space
indent_size = 2