Add husky to scripts.

This commit is contained in:
Spencer Ofwiti 2021-05-10 19:28:14 +03:00
parent 1c926baf47
commit 4fba0bb1d8
2 changed files with 5 additions and 1 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

View File

@ -11,9 +11,12 @@
"test:dev": "ng test",
"format:check": "prettier --config ./.prettierrc --list-different \"src/{app,environments,assets}/**/*.{ts,js,json,css,scss}\"",
"format:change": "prettier --config ./.prettierrc --write \"src/{app,environments,assets}/**/*.{ts,js,json,css,scss}\"",
"format:fix": "pretty-quick --staged",
"lint": "ng lint",
"e2e": "ng e2e",
"postinstall": "node patch-webpack.js"
"precommit": "format:fix && lint",
"postinstall": "node patch-webpack.js",
"prepare": "husky install"
},
"private": true,
"dependencies": {