Skip to content

Commit 880b0fb

Browse files
committed
Merge pull request home-assistant#452 from treyhunner/topic/editorconfig
Add EditorConfig files to define indentation styles
2 parents 7f4cf25 + 0996e56 commit 880b0fb

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://EditorConfig.org
3+
4+
root = true
5+
6+
; Use 2 spaces for indentation in all Ruby files
7+
8+
[*.rb]
9+
indent_style = space
10+
indent_size = 2
11+
12+
[Rakefile]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[Gemfile*]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[config.ru]
21+
indent_style = space
22+
indent_size = 2

.themes/classic/.editorconfig

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://EditorConfig.org
3+
4+
5+
; Use 2 spaces for indentation in SCSS, JavaScript, HTML, and XML
6+
7+
[*.scss]
8+
indent_style = space
9+
indent_size = 2
10+
11+
[*.js]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.html]
16+
indent_style = space
17+
indent_size = 2
18+
19+
[*.xml]
20+
indent_style = space
21+
indent_size = 2
22+
23+
24+
; Use 4 spaces for indentation in Markdown files
25+
26+
[*.md]
27+
indent_style = space
28+
indent_size = 4
29+
30+
[*.markdown]
31+
indent_style = space
32+
indent_size = 4
33+
34+
35+
; Override default indentation for some library files
36+
37+
[jwplayer/glow/glow.xml]
38+
indent_style = tab
39+
40+
[libs/jXHR.js]
41+
indent_style = tab
42+
43+
[libs/swfobject-dynamic.js]
44+
indent_style = tab

0 commit comments

Comments
 (0)