18 pre commit hooks (#40)

* added husky

* added prettier and eslint hooks

* upgraded speeds

* lock

* Update pre-commit

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>

---------

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>
This commit is contained in:
DanMihailescu 2025-01-01 09:19:15 -05:00 committed by GitHub
parent 27fd2b7a14
commit a4d998665b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

2
.husky/pre-commit Normal file
View file

@ -0,0 +1,2 @@
bunx prettier . --write
bunx eslint_d $(git diff --name-only HEAD | grep -E '\.(*)$' | xargs)

BIN
bun.lockb

Binary file not shown.

View file

@ -23,7 +23,8 @@
"prisma:push": "prisma db push",
"prisma:reset": "prisma migrate reset --force",
"prisma:studio": "prisma studio",
"prisma:validate": "prisma validate"
"prisma:validate": "prisma validate",
"prepare": "husky"
},
"devDependencies": {
"@chromatic-com/storybook": "^3.2.2",
@ -48,6 +49,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"husky": "^9.1.7",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "^0.6.5",
@ -70,6 +72,7 @@
"@prisma/client": "6.0.1",
"@tailwindcss/typography": "^0.5.15",
"dayjs": "^1.11.13",
"eslint_d": "^14.3.0",
"graphql": "^16.9.0",
"graphql-yoga": "^5.10.4",
"lucia": "^3.2.2",