Skip to content

Commit

Permalink
chore: fix husky hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
vanya2h committed Aug 18, 2023
1 parent 6f2e95b commit 81f9822
Show file tree
Hide file tree
Showing 4 changed files with 489 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn 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"

yarn run precommit
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,19 @@
"prettify:packages": "lerna exec -- sort-package-json && sort-package-json",
"release": "lerna publish from-package",
"test": "yarn workspaces run test",
"precommit": "run-s lint verify",
"verify": "yarn workspaces run verify",
"version": "lerna version"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.ts,*.tsx,*.js,*.jsx": [
"yarn run prettify:code"
],
"**/src/package.json": [
"yarn run prettify:packages"
],
Expand All @@ -44,8 +53,11 @@
"@types/jest": "^29.5.0",
"@types/react": "^16.9.37",
"@types/react-dom": "^16.9.8",
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@types/react-virtualized": "9.21.10",
"eslint": "^8.47.0",
"npm-run-all": "^4.1.5",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
Expand Down
Loading

0 comments on commit 81f9822

Please sign in to comment.