Skip to content

Commit

Permalink
feat: add husky (#7)
Browse files Browse the repository at this point in the history
# 🤖 Linear

Closes ZKS-40
  • Loading branch information
0xkenj1 authored May 23, 2024
1 parent 8b69e18 commit 4ac04e4
Show file tree
Hide file tree
Showing 6 changed files with 3,633 additions and 2,660 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
nodeLinker: node-modules

compressionLevel: mixed

enableGlobalCache: false
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"prepare": "husky",
"test": "turbo run test",
"test:watch": "turbo run test:watch",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
Expand All @@ -14,10 +15,18 @@
"tooling/*"
],
"devDependencies": {
"@commitlint/config-conventional": "19.2.2",
"@hyperhub/test-config": "workspace:*",
"@hyperhub/typescript-config": "workspace:*",
"commitlint": "19.3.0",
"husky": "9.0.11",
"lint-staged": "15.2.4",
"prettier": "3.2.5",
"turbo": "latest"
"turbo": "1.13.3"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "eslint --cache --fix",
"**/*.{md,json,yml,yaml}": "prettier --write"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 4ac04e4

Please sign in to comment.