-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
66 lines (52 loc) · 1.92 KB
/
Copy path.editorconfig
File metadata and controls
66 lines (52 loc) · 1.92 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
# EditorConfig — maintain consistent coding styles across editors.
# Docs: https://editorconfig.org
# Plugin index: https://editorconfig.org/#download
#
# This file lives at the repo root and applies to the whole tree.
root = true
# ───────────────────────────── defaults
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
# ───────────────────────────── documentation
# Two trailing spaces in Markdown = hard line break, so leave them alone.
[*.md]
trim_trailing_whitespace = false
# ───────────────────────────── shell
[*.sh]
indent_size = 2
# ───────────────────────────── Makefiles require literal tabs
[Makefile]
indent_style = tab
# ───────────────────────────── common web stacks
[*.{js,jsx,ts,tsx,mjs,cjs}]
indent_size = 2
[*.{html,css,scss,sass}]
indent_size = 2
# ───────────────────────────── other languages
[*.py]
indent_size = 4
max_line_length = 100
[*.go]
indent_style = tab
indent_size = 4
[*.rs]
indent_size = 4
# ───────────────────────────── data / config
[*.{json,json5,jsonc}]
indent_size = 2
[*.{yml,yaml}]
indent_size = 2
[*.toml]
indent_size = 4
# ───────────────────────────── lockfiles — formatter-owned, leave alone
[{package-lock.json,yarn.lock,pnpm-lock.yaml,bun.lockb,Cargo.lock,go.sum,composer.lock,poetry.lock,Gemfile.lock,*.lock,*.sum}]
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset