Skip to content

Commit

Permalink
build: integrate husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
DawChihLiou committed Dec 13, 2022
1 parent f7f7877 commit 023a004
Show file tree
Hide file tree
Showing 3 changed files with 341 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint
yarn format
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@
"build": "wasm-pack build",
"test": "wasm-pack test --node --firefox --chrome --safari --headless",
"publish": "wasm-pack pack && wasm-publish",
"lint": "cargo clippy --fix",
"format": "cargo fmt"
"lint": "cargo clippy",
"format": "cargo fmt",
"prepare": "husky install"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog-with-jiraid-detection"
}
},
"devDependencies": {
"cz-conventional-changelog-with-jiraid-detection": "^1.0.4"
"cz-conventional-changelog-with-jiraid-detection": "^1.0.4",
"husky": "^8.0.2",
"lint-staged": "^13.1.0"
}
}
Loading

0 comments on commit 023a004

Please sign in to comment.