Skip to content

Commit 25574b6

Browse files
tvanantwerpmarks-sre-is
authored andcommitted
Add husky, lint-staged, and a pre-commit hook
1 parent 99dc318 commit 25574b6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
cd remix-gql-tailwind
5+
npx lint-staged

starters/remix-gql-tailwind/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"start": "remix-serve build",
3636
"test": "jest",
3737
"storybook": "concurrently -n css,storybook -c cyan,magenta \"npm run dev:css\" \"start-storybook -p 6006\"",
38-
"build-storybook": "build-storybook"
38+
"build-storybook": "build-storybook",
39+
"prepare": "husky install"
3940
},
4041
"msw": {
4142
"workerDirectory": "public"

0 commit comments

Comments
 (0)