Skip to content

Commit

Permalink
chore: add git hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jun 19, 2024
1 parent 20548fe commit a646a63
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn lint
yarn test
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
"dev": "nx run-many -t dev",
"build": "nx run-many -t build",
"lint": "nx run-many -t lint",
"test": "nx run-many -t test"
"test": "nx run-many -t test",
"postinstall": "husky"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"husky": "^9.0.11",
"nx": "19.2.2",
"prettier": "^3.3.1"
}
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9906,6 +9906,15 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^9.0.11":
version: 9.0.11
resolution: "husky@npm:9.0.11"
bin:
husky: bin.mjs
checksum: 10c0/2c787dcf74a837fc9a4fea7da907509d4bd9a289f4ea10ecc9d86279e4d4542b0f5f6443a619bccae19e265f2677172cc2b86aae5c932a35a330cc227d914605
languageName: node
linkType: hard

"iconv-lite@npm:0.4.24":
version: 0.4.24
resolution: "iconv-lite@npm:0.4.24"
Expand Down Expand Up @@ -14505,6 +14514,7 @@ __metadata:
resolution: "reactive-dot@workspace:."
dependencies:
"@trivago/prettier-plugin-sort-imports": "npm:^4.3.0"
husky: "npm:^9.0.11"
nx: "npm:19.2.2"
prettier: "npm:^3.3.1"
languageName: unknown
Expand Down

0 comments on commit a646a63

Please sign in to comment.