Skip to content

Commit

Permalink
Add husky, lint-staged, and a pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tvanantwerp authored and marks-sre-is committed Aug 14, 2023
1 parent 99dc318 commit 25574b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions starters/remix-gql-tailwind/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

cd remix-gql-tailwind
npx lint-staged
3 changes: 2 additions & 1 deletion starters/remix-gql-tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"start": "remix-serve build",
"test": "jest",
"storybook": "concurrently -n css,storybook -c cyan,magenta \"npm run dev:css\" \"start-storybook -p 6006\"",
"build-storybook": "build-storybook"
"build-storybook": "build-storybook",
"prepare": "husky install"
},
"msw": {
"workerDirectory": "public"
Expand Down

0 comments on commit 25574b6

Please sign in to comment.