Skip to content

Commit

Permalink
Add .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
arnikz committed Nov 24, 2020
1 parent 576cf79 commit 9866b35
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Set default charset
charset = utf-8

# Matches multiple files with brace expansion notation

# 4 space indentation
[*.{py,java,r,R}]
indent_size = 4

# 2 space indentation
[*.{js,json,yml,html,xml}]
indent_size = 2

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

0 comments on commit 9866b35

Please sign in to comment.