Skip to content

Commit

Permalink
Add editorconfig
Browse files Browse the repository at this point in the history
Fixes GH-2.
  • Loading branch information
lopopolo committed Aug 18, 2019
1 parent c927b59 commit d57afcf
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

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

[*.rs]
indent_size = 4

[*.{rb,erb}]
indent_size = 2

[*.{md,markdown}]
trim_trailing_whitespace = false

[*.sh]
end_of_line = lf
indent_size = 2

[*.{h,c,cc,cpp}]
indent_size = 2

[Makefile]
indent_style = tab
indent_size = 8

[*.make]
indent_style = tab
indent_size = 8

[*.diff]
trim_trailing_whitespace = false

[*.json]
indent_size = 2

[*.{js,jsx}]
indent_size = 2

[*.{ts,tsx}]
indent_size = 2

[*.{htm,html}]
indent_size = 2

[*.{css,sass,scss,less}]
indent_size = 2

[*.svg]
indent_size = 2

[*.toml]
indent_size = 4

[*.xml]
indent_size = 2

[*.{yml,yaml}]
indent_size = 2

[Dockerfile]
indent_size = 4

# Ignore paths
[**/{node_modules,target,vendor}/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
indent_size = unset
indent_style = unset
trim_trailing_whitespace = unset

0 comments on commit d57afcf

Please sign in to comment.