-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy path.editorconfig
More file actions
69 lines (55 loc) · 1.17 KB
/
.editorconfig
File metadata and controls
69 lines (55 loc) · 1.17 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
# https://editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{c,cpp,cc,cxx,h,hh,hpp,hxx,mm,m}]
indent_style = space
indent_size = 2
# Matches ColumnLimit in .clang-format
max_line_length = 80
[*.idl]
indent_style = space
indent_size = 2
[*.{js,jsx,ts,tsx,mjs,jsm,sjs,es}]
indent_style = space
indent_size = 2
# Matches printWidth in .prettierrc.js
max_line_length = 80
[*.{py,py3,configure,build,mozbuild}]
indent_style = space
indent_size = 4
# Matches line-length in pyproject.toml (ruff)
max_line_length = 88
[*.rs]
indent_style = space
indent_size = 4
# rustfmt default max_width
max_line_length = 100
[*.java]
indent_style = space
indent_size = 2
max_line_length = 100
[*.{kt,kts}]
indent_style = space
indent_size = 4
max_line_length = 120
[*.{html,xhtml,htm,xml,xul,svg}]
indent_style = space
indent_size = 2
max_line_length = 80
[*.{css,scss,less}]
indent_style = space
indent_size = 2
max_line_length = 80
[*.json]
indent_style = space
indent_size = 2
[{Makefile,Makefile.in,GNUmakefile}]
indent_style = tab
[*.{mk,mak,make}]
indent_style = tab
[*.{diff,patch}]
trim_trailing_whitespace = false