Skip to content

Commit

Permalink
lint: Add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Mar 4, 2024
1 parent 50199a9 commit 97ef06b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pnpm format:check
pnpm lint
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"scripts": {
"format": "prettier . --write",
"format:check": "prettier . --check",
"lint": "eslint .",
"lint": "eslint . --ignore-path .gitignore",
"db:migrate": "pnpm --filter @hoarder/db run migrate",
"db:studio": "pnpm --filter @hoarder/db studio",
"workers": "pnpm --filter @hoarder/workers run start",
"web": "pnpm --filter @hoarder/web run dev"
"web": "pnpm --filter @hoarder/web run dev",
"prepare": "husky"
},
"dependencies": {
"@next/eslint-plugin-next": "^14.1.0",
Expand All @@ -30,6 +31,7 @@
"eslint": "^8.56.0",
"eslint-config-next": "14.1.0",
"eslint-plugin-tailwindcss": "^3.14.2",
"husky": "^9.0.11",
"install": "^0.13.0",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11"
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 97ef06b

Please sign in to comment.