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

View File

@@ -7,7 +7,12 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint:format": "npm run lint:fix && npm run format",
"preview": "vite preview",
"prepare": "husky"
},
"dependencies": {
"@marsidev/react-turnstile": "^1.1.0",
@@ -33,9 +38,13 @@
"@vitejs/plugin-react": "^4.3.4",
"daisyui": "^5.0.35",
"eslint": "^9.22.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.4.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"husky": "^9.1.7",
"prettier": "^3.5.3",
"typescript": "~5.7.2",
"typescript-eslint": "^8.26.1",
"vite": "^6.3.1"