test: add eslint and prettier configuration with pre-commit hook

This commit is contained in:
Ember
2025-11-05 11:05:07 +08:00
parent d1f7ced7e1
commit a89cd722c9
6 changed files with 183 additions and 1 deletions

4
.husky/pre-commit Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
cd web && npx lint-staged