Skip to content

Commit 05684d6

Browse files
authored
Adding an editorconfig file with support for md, html, js, yaml, Make… (#331)
Adding an editorconfig file with support for md, html, js, yaml, Makefile, css, and template files. Resolves #329 # Description This PR adds an .editorconfig file with default settings for the text based files in the project. ## Changes - Added .editorconfig
1 parent aa83033 commit 05684d6

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.editorconfig

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
root = true
2+
3+
# Global defaults
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
# Markdown
11+
[*.md]
12+
indent_style = space
13+
indent_size = 2
14+
trim_trailing_whitespace = false
15+
16+
# HTML
17+
[*.html]
18+
indent_style = space
19+
indent_size = 2
20+
21+
# JavaScript
22+
[*.js]
23+
indent_style = space
24+
indent_size = 2
25+
26+
# YAML
27+
[*.{yml,yaml}]
28+
indent_style = space
29+
indent_size = 2
30+
31+
# Makefiles (requires tab-based indentation)
32+
[Makefile]
33+
indent_style = tab
34+
35+
# CSS
36+
[*.css]
37+
indent_style = space
38+
indent_size = 2

0 commit comments

Comments
 (0)