build:增加格式化说明。

This commit is contained in:
徐涛 2021-08-23 11:29:56 +08:00
parent ef0c4f738c
commit 3752eaa788
2 changed files with 21 additions and 0 deletions

10
.editorconfig Normal file
View File

@ -0,0 +1,10 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

11
.prettierrc Normal file
View File

@ -0,0 +1,11 @@
{
"bracketSpacing": true,
"jsxBracketSameLine": true,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "all",
"arrowParens": "always"
}