Skip to content

Commit

Permalink
add: (CI) Husky (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
BjrInt authored Feb 21, 2023
1 parent 636f966 commit 58a84ee
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
22 changes: 22 additions & 0 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"rollup": "rollup -c",
"start": "npm run storybook",
"storybook": "start-storybook -p 6006",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install"
},
"author": "",
"license": "ISC",
Expand Down Expand Up @@ -46,6 +47,7 @@
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"husky": "^8.0.3",
"polished": "^4.2.2",
"react": "^18.1.0",
"react-dom": "^18.1.0",
Expand Down

0 comments on commit 58a84ee

Please sign in to comment.