From 259a85a680198d0743d3ed68a8fcee156c9b9ce3 Mon Sep 17 00:00:00 2001 From: bathini79 Date: Mon, 6 Nov 2023 02:47:27 +0530 Subject: [PATCH] feat:common-configuration-#85-Husky --- package.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9aa8ed2e5..105b5ff69 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,14 @@ "lint": "eslint packages/firecamp-rest/src/**/*.{ts|tsx} packages/*.js packages-clients/*.js scripts webpack/*.js", "test": "jest", "prettify": "prettier --write \"platform/firecamp-platform/src/**/*.(ts|tsx)\" \"packages/firecamp-rest/src/**/*.(ts|tsx)\" \"packages/firecamp-graphql/src/**/*.(ts|tsx)\"", - "precommit": "lint-staged", - "preinstall": "npx only-allow pnpm" + "pre-commit": "pnpm --filter=@firecamp/platform --filter=@firecamp/ui pre-commit", + "preinstall": "npx only-allow pnpm", + "prepare": "husky install" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } }, "lint-staged": { "**/*.ts": [ @@ -72,11 +78,11 @@ "eslint-plugin-react": "^7.20.5", "file-loader": "^6.2.0", "html-webpack-plugin": "^5.5.0", - "husky": "^8.0.1", + "husky": "^8.0.3", "ignore-loader": "^0.1.2", "jest-css-modules": "^2.1.0", "jest-css-modules-transform": "^4.4.2", - "lint-staged": "^13.1.2", + "lint-staged": "^15.0.2", "node-polyfill-webpack-plugin": "^2.0.0", "npm-run-all": "^4.1.5", "postcss-loader": "^7.0.2",