diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000..31354ec --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/package.json b/package.json index 78ff8ad..b2940b1 100644 --- a/package.json +++ b/package.json @@ -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": {