From 7a095493b3c71c22881f34d4620a25920f4e479c Mon Sep 17 00:00:00 2001 From: chai2010 Date: Wed, 3 Jan 2018 07:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20editorconfig=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..bae4133 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,29 @@ +# Copyright 2017 . 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