🔧 chore: add lint-staged for pre-commit formatting

- Install lint-staged to format staged files before commit
- Update pre-commit hook to run lint-staged then type-check
- Auto-format ts, tsx, js, jsx, json, md, svelte, astro files
This commit is contained in:
Wuesteon 2025-12-03 02:04:41 +01:00
parent ea3582d487
commit 86da45a0c8
4 changed files with 163 additions and 0 deletions

View file

@ -118,6 +118,7 @@
"devDependencies": {
"concurrently": "^9.2.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-svelte": "^3.4.0",