Skip to content

Commit 52b0f8e

Browse files
committed
added .editorconfig
1 parent 9ef9945 commit 52b0f8e

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.editorconfig

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
# python files
15+
[*.py]
16+
trim_trailing_whitespace = true
17+
18+
# config files
19+
[*.{json,json5,yaml,yml,toml}]
20+
indent_size = 2
21+
22+
# Javascript and Typescript
23+
[*.{js,jsx,ts,tsx,vue}]
24+
indent_size = 2
25+
block_comment_start = /**
26+
block_comment = *
27+
block_comment_end = */
28+
29+
# HTML and CSS
30+
[*.{htm,html,css,sass,scss,less,svg}]
31+
indent_size = 2
32+
33+
# Terraform
34+
[*.{tf,tfvars}]
35+
indent_size = 2
36+
37+
# Shell scripts
38+
[*.{sh,bat.tpl,Makefile.tpl}]
39+
indent_style = tab
40+
41+
# Makefiles
42+
[Makefile]
43+
indent_style = tab
44+
45+
# windows scripts
46+
[*.{cmd,bat}]
47+
end_of_line = crlf
48+
49+
# Markdown
50+
[*.md]
51+
trim_trailing_whitespace = false
52+
indent_style = space
53+
indent_size = 2
54+
55+
# diff files
56+
[*.diff]
57+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)