Skip to content

Commit acbccd9

Browse files
committed
chore: add EditorConfig
because I found some inconsistencies between files (in particular with line endings, but not only), I introduce a minimal EditorConfig to simplify future editings
1 parent 81ccadb commit acbccd9

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.editorconfig

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
##########################################
2+
# Common Settings
3+
##########################################
4+
5+
# This file is the top-most EditorConfig file
6+
root = true
7+
8+
# All Files
9+
[*]
10+
charset = utf-8
11+
indent_style = space
12+
indent_size = 4
13+
insert_final_newline = true
14+
trim_trailing_whitespace = true
15+
16+
##########################################
17+
# File Extension Settings
18+
##########################################
19+
20+
# XML Configuration Files
21+
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
22+
indent_size = 2
23+
24+
# JSON Files
25+
[*.{json,json5,webmanifest}]
26+
indent_size = 2
27+
28+
# YAML Files
29+
[*.{yml,yaml}]
30+
indent_size = 2
31+
32+
# Markdown Files
33+
[*.md]
34+
trim_trailing_whitespace = false
35+
36+
# Web Files
37+
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue}]
38+
indent_size = 2
39+
40+
# Batch Files
41+
[*.{cmd,bat,ps1}]
42+
end_of_line = crlf
43+
44+
# Bash Files
45+
[*.sh]
46+
end_of_line = lf
47+
48+
# Makefiles
49+
[Makefile]
50+
indent_style = tab

0 commit comments

Comments
 (0)