🚨 增加 prettier

This commit is contained in:
muwoo
2023-03-16 14:45:53 +08:00
parent 4f58bfdc4f
commit dc74251bd0
19 changed files with 403 additions and 203 deletions

19
.prettierrc Normal file
View File

@@ -0,0 +1,19 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"printWidth": 80,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "ignore",
"preserve": "preserve",
"insertPragma": false,
"quoteProps": "as-needed",
"requirePragma": false,
"endOfLine": "auto"
}