Skip to content

Commit

Permalink
replace husky with set-git-hooks-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Jun 26, 2024
1 parent 1acd5fa commit 7a28326
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-push → .git-hooks/pre-push
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#!/bin/bash

set -e -o pipefail

cd v2 && npm run lint && npm test
29 changes: 12 additions & 17 deletions v2/package-lock.json

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

5 changes: 2 additions & 3 deletions v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"lint:eslint": "eslint --max-warnings 0 \"web/**/*.ts\" \"web/**/*.tsx\"",
"lint:stylelint": "stylelint web/style.css",
"lint:web": "concurrently -c auto npm:lint:tsc npm:lint:prettier npm:lint:eslint npm:lint:stylelint",
"test": "cargo test",
"prepare": "cd .. && husky"
"test": "cargo test"
},
"author": "rhysd <lin90162@yahoo.co.jp> (https://rhysd.github.io/)",
"license": "MIT",
Expand Down Expand Up @@ -57,7 +56,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-security": "^3.0.0",
"husky": "^9.0.11",
"set-git-hooks-dir": "^0.0.0",
"prettier": "^3.3.1",
"stylelint": "^16.6.1",
"stylelint-config-standard": "^36.0.0",
Expand Down

0 comments on commit 7a28326

Please sign in to comment.