From bd3bfb8134349101714f7c6ab66ff49465233dc5 Mon Sep 17 00:00:00 2001 From: Sasha <118575614+weboko@users.noreply.github.com> Date: Tue, 21 Feb 2023 17:02:09 +0100 Subject: [PATCH] chore: disable tests & fix husky (#2) --- .husky/pre-commit | 3 ++- package.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 9164d52..354655c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npm run fix +npm run lint:fix +npm run prettier:fix diff --git a/package.json b/package.json index 9bfaafe..6c6b15f 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,8 @@ "test": "jest --config ./jest.config.js", "test:coverage": "npm run test -- --coverage", "bundlewatch": "npm run build && bundlewatch", - "prepublish": "npm run fix && npm run type && npm run test && npm run build" + "prepublish": "npm run fix && npm run type && npm run build", + "prepare": "husky install" }, "engines": { "node": ">=18" @@ -78,7 +79,7 @@ "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-simple-import-sort": "^10.0.0", - "husky": "^8.0.3", + "husky": "^8.0.0", "jest": "^29.4.3", "jest-environment-jsdom": "^29.4.3", "jest-watch-typeahead": "^2.2.2",