forked from home-assistant/home-assistant.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request home-assistant#452 from treyhunner/topic/editorconfig
Add EditorConfig files to define indentation styles
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://EditorConfig.org | ||
|
||
root = true | ||
|
||
; Use 2 spaces for indentation in all Ruby files | ||
|
||
[*.rb] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Rakefile] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Gemfile*] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[config.ru] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://EditorConfig.org | ||
|
||
|
||
; Use 2 spaces for indentation in SCSS, JavaScript, HTML, and XML | ||
|
||
[*.scss] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.html] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.xml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
|
||
; Use 4 spaces for indentation in Markdown files | ||
|
||
[*.md] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.markdown] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
|
||
; Override default indentation for some library files | ||
|
||
[jwplayer/glow/glow.xml] | ||
indent_style = tab | ||
|
||
[libs/jXHR.js] | ||
indent_style = tab | ||
|
||
[libs/swfobject-dynamic.js] | ||
indent_style = tab |