Add prettier and husky to insure format before commit (#1)

This commit is contained in:
Yukko
2025-06-03 22:27:49 +08:00
committed by GitHub
parent 4130090fd7
commit 7994ecc100
7 changed files with 265 additions and 26 deletions

12
frontend/prettierrc.yml Normal file
View File

@@ -0,0 +1,12 @@
printWidth: 120
tabWidth: 2
useTabs: false
semi: false
singleQuote: false
quoteProps: "as-needed"
jsxSingleQuote: true
trailingComma: "none"
bracketSameLine: false
arrowParens: "avoid"
endOfLine: "lf"
bracketSpacing: false