Skip to content

Commit 75a93c1

Browse files
committed
Add .editorconfig
Signed-off-by: Jack Cherng <[email protected]>
1 parent bacdba8 commit 75a93c1

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.editorconfig

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.bat]
12+
charset = latin1
13+
end_of_line = crlf
14+
15+
[*.{css,sass,scss}]
16+
indent_size = 2
17+
18+
[*.{html,xml,twig,blade,volt}]
19+
indent_size = 2
20+
21+
[*.js]
22+
indent_size = 2
23+
24+
[*.json]
25+
indent_size = 4
26+
27+
[*.md]
28+
indent_size = 2
29+
trim_trailing_whitespace = false
30+
31+
[*.php]
32+
indent_size = 4
33+
34+
[*.ps]
35+
end_of_line = crlf
36+
37+
[*.py]
38+
indent_size = 4
39+
40+
[*.{sh,csh,tcsh,zsh,bash,fish}]
41+
indent_size = 4
42+
43+
[*.{yml,yaml,toml,neon}]
44+
indent_size = 2
45+
46+
[Makefile]
47+
indent_style = tab

dot-files/.editorconfig

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.bat]
12+
charset = latin1
13+
end_of_line = crlf
14+
15+
[*.{css,sass,scss}]
16+
indent_size = 2
17+
18+
[*.{html,xml,twig,blade,volt}]
19+
indent_size = 2
20+
21+
[*.js]
22+
indent_size = 2
23+
24+
[*.json]
25+
indent_size = 4
26+
27+
[*.md]
28+
indent_size = 2
29+
trim_trailing_whitespace = false
30+
31+
[*.php]
32+
indent_size = 4
33+
34+
[*.ps]
35+
end_of_line = crlf
36+
37+
[*.py]
38+
indent_size = 4
39+
40+
[*.{sh,csh,tcsh,zsh,bash,fish}]
41+
indent_size = 4
42+
43+
[*.{yml,yaml,toml,neon}]
44+
indent_size = 2
45+
46+
[Makefile]
47+
indent_style = tab

0 commit comments

Comments
 (0)