Skip to content

Commit

Permalink
Merge pull request #38 from kristianka/husky
Browse files Browse the repository at this point in the history
Husky
  • Loading branch information
kristianka authored Sep 20, 2024
2 parents 528c9e0 + a9bf6e3 commit a79a395
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions nextjs/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd ./nextjs
npm run lint
npm run type-check
16 changes: 16 additions & 0 deletions nextjs/package-lock.json

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

4 changes: 3 additions & 1 deletion nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "next lint",
"type-check": "tsc --noEmit",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"prepare": "cd .. && husky nextjs/.husky"
},
"dependencies": {
"@headlessui/react": "^2.1.8",
Expand Down Expand Up @@ -57,6 +58,7 @@
"eslint-plugin-react": "^7.36.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-storybook": "^0.8.0",
"husky": "^9.1.6",
"postcss": "^8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
Expand Down

0 comments on commit a79a395

Please sign in to comment.