Skip to content

Commit 3ff49c7

Browse files
committed
introduce .editorconfig
1 parent 5060d02 commit 3ff49c7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.editorconfig

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file is part of the tschm/.config-templates repository
2+
# (https://github.com/tschm/.config-templates).
3+
#
4+
root = true
5+
6+
# Default settings for all files
7+
[*]
8+
end_of_line = lf
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
charset = utf-8
12+
13+
# Python, reStructuredText, and text files
14+
[*.{py,rst,txt}]
15+
indent_style = space
16+
indent_size = 4
17+
18+
# YAML, JSON, and other config files
19+
[*.{yml,yaml,json}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
# Markdown files
24+
# [*.{md,markdown}]
25+
# trim_trailing_whitespace = false
26+
27+
# Don't apply editorconfig rules to vendor/ resources
28+
# This is a "defensive" rule for the day we may have
29+
# the vendor folder
30+
[vendor/**]
31+
charset = unset
32+
end_of_line = unset
33+
indent_size = unset
34+
indent_style = unset
35+
insert_final_newline = unset
36+
trim_trailing_whitespace = unset

0 commit comments

Comments
 (0)