Skip to content

Commit

Permalink
chore: fix husky
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Feb 11, 2023
1 parent 7386c71 commit c2bc143
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 82 deletions.
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 lint-staged
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "library-host",
"version": "0.0.0",
"scripts": {
"prepare": "husky install",
"ng": "ng",
"prettier": "prettier --write \"**/*.{json,md,ts,html,component.html}\"",
"start": "ng serve",
Expand Down Expand Up @@ -50,30 +51,24 @@
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "7.0.4",
"husky": "8.0.3",
"jasmine-core": "~3.10.1",
"jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.9",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~4.0.1",
"karma-jasmine-html-reporter": "^1.7.0",
"lint-staged": "12.0.2",
"lint-staged": "13.1.1",
"ng-packagr": "^13.0.3",
"prettier": "2.4.1",
"protractor": "~7.0.0",
"ts-node": "~10.4.0",
"typescript": "~4.4.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{json,md,ts,html,component.html}": [
"prettier --write",
"git add"
"prettier --write"
]
}
}
Loading

0 comments on commit c2bc143

Please sign in to comment.