style(prettier): 添加 prettier 格式化代码

This commit is contained in:
BTMuli
2023-03-05 15:03:50 +08:00
parent b07bcabd0e
commit 9df4dfdbad
13 changed files with 1355 additions and 1321 deletions

9
.prettierrc.yaml Normal file
View File

@@ -0,0 +1,9 @@
"semi": true # 是否使用分号 true:使用
"singleQuote": false # 是否使用单引号
"printWidth": 100 # 一行最多多少个字符
"tabWidth": 4 # 一个tab代表几个空格
"useTabs": true # 是否使用tab
"proseWrap": "preserve" # 是否换行
"arrowParens": "avoid" # 箭头函数参数是否使用括号
"bracketSpacing": true # 对象大括号是否有空格
"endOfLine": "auto" # 换行符