Skip to content

Commit

Permalink
增加 editorconfig 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
chai2010 committed Jan 2, 2018
1 parent 3033a07 commit 7a09549
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 @@
# Copyright 2017 <chaishushan{AT}gmail.com>. All rights reserved.
# Use of this source code is governed by a Apache
# license that can be found in the LICENSE file.

# http://editorconfig.org/

root = true

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

[*]
indent_style = tab
indent_size = 4
tab_width = 4

[*.{go,ts,js,c,cc,cpp,h,py,proto}]
charset = utf-8
indent_style = tab
tab_width = 4

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2

0 comments on commit 7a09549

Please sign in to comment.