Skip to content

Commit

Permalink
build: upgrade to husky 7
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 29, 2021
1 parent e74ea73 commit 5467395
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 87 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
# shellcheck disable=SC1090
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# shellcheck disable=SC1090
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm run typecheck
84 changes: 4 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.18.0",
"description": "Taiga UI by Tinkoff is a set of components, services, directives and other tools to build high quality UI using modern Angular framework",
"scripts": {
"postinstall": "husky install",
"start": "nx serve",
"start:ssl": "nx serve --ssl",
"start:ru": "nx serve --configuration ru",
Expand Down Expand Up @@ -157,7 +158,7 @@
"find-in-files": "0.5.0",
"firebase-tools": "^9.18.0",
"http-server": "^0.12.3",
"husky": "^3.0.9",
"husky": "7.0.2",
"jasmine-core": "^3.4.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^4.0.1",
Expand Down Expand Up @@ -187,12 +188,6 @@
"tslint": "~5.15.0",
"typescript": "~3.8.3"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged && npm run typecheck"
}
},
"lint-staged": {
"*.{js,ts,html,md,less,json}": [
"prettier --write",
Expand Down

0 comments on commit 5467395

Please sign in to comment.