build: add .editorconfig

This commit is contained in:
Gauthier Roebroeck 2020-01-06 10:08:46 +08:00
parent e2e27670fd
commit 7ac44e41d2

29
.editorconfig Normal file
View file

@ -0,0 +1,29 @@
root = true
[*]
charset = utf-8
end_of_line = crlf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true
[{*.ats, *.ts}]
indent_size = 2
tab_width = 2
[{*.cjs, *.js}]
indent_size = 2
tab_width = 2
[{*.gradle.kts, *.kts, *.kt}]
indent_size = 2
tab_width = 2
[{*.yml, *.yaml}]
indent_size = 2
[{.eslintrc, bowerrc, .prettierrc, .releaserc, jest.config, .stylelintrc, .babelrc, *.jsb3, *.jsb2, *.json}]
indent_size = 2