Skip to content

Commit

Permalink
Update husky config for v7
Browse files Browse the repository at this point in the history
  • Loading branch information
Pl217 committed Apr 26, 2022
1 parent b759e08 commit 7927e36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run affected:build && npm run affected:lint
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,13 @@
"update": "nx migrate latest",
"dep-graph": "nx dep-graph",
"help": "nx help",
"workspace-generator": "nx workspace-generator"
"workspace-generator": "nx workspace-generator",
"prepare": "husky install"
},
"engines": {
"node": ">=16.12.0",
"npm": ">=8.1.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run affected:build && npm run affected:lint"
}
},
"lint-staged": {
"*.{js,ts,tsx,md,json}": [
"prettier --check"
Expand Down

0 comments on commit 7927e36

Please sign in to comment.