Skip to content

Commit

Permalink
Start unify coding styles via EditorConfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Jul 24, 2019
1 parent 1435c11 commit dd3463c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# EditorConfig is awesome: https://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

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8

# 2 space indentation
[*.{yml,sh,vim},vimshrc]
indent_size = 2
indent_style = space

# 4 space indentation
[*.{py,rst}]
indent_size = 4
indent_style = space

# Tab indentation (no size specified)
[Makefile]
indent_style = tab
tab_width = 8

0 comments on commit dd3463c

Please sign in to comment.