Skip to content

Commit 727aeeb

Browse files
chore: add .editorconfig
1 parent ee19b32 commit 727aeeb

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.editorconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines and whitespace cleanup
7+
[*]
8+
end_of_line = lf
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
# Protect whitespace in markdown files
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
# general formatting
17+
[*.{bash,go,sh,zsh,justfile,Earthfile,Makefile}]
18+
indent_style = tab
19+
indent_size = 4
20+
21+
# Set default charset
22+
[*.{html,xml,js,css,py}]
23+
charset = utf-8
24+
25+
# python
26+
[*.py]
27+
indent_style = space
28+
indent_size = 4
29+
30+
# webdev et al
31+
[*.{html,xml,js,ts,mjs,css,json,jsonc,gql,lua,tf,tfvars,yml,yaml}]
32+
indent_style = space
33+
indent_size = 2

0 commit comments

Comments
 (0)