-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
42 lines (35 loc) · 1.13 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
root = true
# Unix-style newlines with a newline ending every file
# with no excess whitespace ending lines, no indentation preference.
[*]
charset = utf8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# 2 spaces for list indenting, 2 'tabs' for code blocks if not fenced.
# Don't trim line whitespace as it's significant in markdown.
[*.md]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2
[*.{yaml,yml}]
indent_style = space
indent_size = 2
# A personal preference for hybrid indentation in sources I generate:
# Tabs for indent, spaces for alignment. It's the typeographer in me.
# Tab width of 3 is my 'Goldilocks' zone of indentation and until I can grep
# indention spaces explicitly, Tabs it will be. Opinionated? Absolutely!
[*.{coffee,js,JavaScript,json,c,h,ino,cpp,fish,sh,pl,py}]
indent_style = tab
indent_size = 3
[package.json]
insert_final_newline = false
indent_style = space
indent_size = 2
[.eslintrc.{js,json}]
indent_style = space
indent_size = 2
# 2 space indents when required. rc's should really be in package.json
[{.esformatter,.jshintrc}]
indent_style = space
indent_size = 2