Skip to content

Commit

Permalink
Add default .editorconfig file (#2894)
Browse files Browse the repository at this point in the history
* Add default .editorconfig file

Signed-off-by: Joel Seguillon <joel.seguillon@gmail.com>

* changing docs/.editorconfig not to be root

Signed-off-by: Joel Seguillon <joel.seguillon@gmail.com>

* ident_size to be 4 for htm,html,js,ts,css,scss,less

Signed-off-by: Joel Seguillon <joel.seguillon@gmail.com>
  • Loading branch information
jseguillon authored and bnjjj committed Jun 18, 2018
1 parent 4efd8ff commit cde1e2e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

# Web Files
[*.{htm,html,js,ts,css,scss,less}]
indent_size = 4
4 changes: 1 addition & 3 deletions docs/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
root = true

[*]
indent_style = space
indent_size = 4
Expand All @@ -10,4 +8,4 @@ charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
charset = utf-8

0 comments on commit cde1e2e

Please sign in to comment.