Skip to content

Commit 72a50e3

Browse files
authored
Created .editorconfig
Editorconfig is more or less standard now to enforce coding style. It might be a good idea to have one in the project, reflecting GO defaults while also using the industry standard / recommended settings for other files that are very likely to be included in a GO project.
1 parent 9a93945 commit 72a50e3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[{*.go,Makefile,.gitmodules,go.mod,go.sum}]
10+
indent_style = tab
11+
12+
[*.md]
13+
indent_style = tab
14+
trim_trailing_whitespace = false
15+
16+
[*.{yml,yaml,json}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.{js,jsx,ts,tsx,css,less,sass,scss,vue,py}]
21+
indent_style = space
22+
indent_size = 4

0 commit comments

Comments
 (0)