From 92dd10999ed4956c6f54d42dae3c887f05e1ffa4 Mon Sep 17 00:00:00 2001 From: xiaodi Date: Sat, 25 Apr 2020 23:31:38 +0800 Subject: [PATCH] add editorconfig --- .editorconfig | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/.editorconfig b/.editorconfig index ea6e20f..d0c591d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,14 +1,34 @@ -# http://editorconfig.org -root = true - [*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true +charset=utf-8 +end_of_line=lf +insert_final_newline=false +indent_style=space +indent_size=2 -[*.md] -insert_final_newline = false -trim_trailing_whitespace = false +[{*.ng,*.sht,*.html,*.shtm,*.shtml,*.htm}] +indent_style=space +indent_size=2 + +[{*.jhm,*.xslt,*.xul,*.rng,*.xsl,*.xsd,*.ant,*.tld,*.fxml,*.jrxml,*.xml,*.jnlp,*.wsdl}] +indent_style=space +indent_size=2 + +[{.babelrc,.stylelintrc,jest.config,.eslintrc,.prettierrc,*.json,*.jsb3,*.jsb2,*.bowerrc}] +indent_style=space +indent_size=2 + +[*.js.map] +indent_style=space +indent_size=2 + +[*.less] +indent_style=space +indent_size=2 + +[*.vue] +indent_style=space +indent_size=2 + +[{.analysis_options,*.yml,*.yaml}] +indent_style=space +indent_size=2 \ No newline at end of file