Skip to content

Commit

Permalink
🔧 chore(1.0): 添加editorconfig配置
Browse files Browse the repository at this point in the history
refs #3

Signed-off-by: Tony Deng <[email protected]>
  • Loading branch information
tonydeng committed Jun 25, 2018
1 parent 4aa0c42 commit 32c61ce
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# http://editorconfig.org
root = true

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

# Use 4 spaces for the Python files
[*.py]
indent_size = 4
max_line_length = 80

# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = ignore

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

# Batch files use tabs for indentation
[*.bat]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

0 comments on commit 32c61ce

Please sign in to comment.