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:
parent
27fd2b7a14
commit
a4d998665b
3 changed files with 6 additions and 1 deletions
2
.husky/pre-commit
Normal file
2
.husky/pre-commit
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bunx prettier . --write
|
||||
bunx eslint_d $(git diff --name-only HEAD | grep -E '\.(*)$' | xargs)
|
||||
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue