add editorconfig

This commit is contained in:
xiaodi 2020-04-25 23:31:38 +08:00
parent 22b3331b08
commit 92dd10999e

View File

@ -1,14 +1,34 @@
# http://editorconfig.org
root = true
[*] [*]
charset=utf-8 charset=utf-8
end_of_line=lf
insert_final_newline=false
indent_style=space indent_style=space
indent_size=2 indent_size=2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md] [{*.ng,*.sht,*.html,*.shtm,*.shtml,*.htm}]
insert_final_newline = false indent_style=space
trim_trailing_whitespace = false 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