From 639f122b11e6eee2953d0ad40db6edbd22b82f61 Mon Sep 17 00:00:00 2001 From: Matteo Vivona Date: Fri, 7 Feb 2020 16:00:30 +0100 Subject: [PATCH] fix(hook): improves eslint precommit hook --- package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 99b41d6e8d..d81448f055 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ }, "husky": { "hooks": { - "pre-commit": "lint-staged && yarn test:ci", + "pre-commit": "lint-staged", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, @@ -131,10 +131,11 @@ "path": "./node_modules/cz-conventional-changelog" } }, - "lint-staged": { + "lint-staged": { "**/*.{js,jsx,ts,tsx}": [ - "npm run lint", + "npm run lint:fix", + "npm run test:ci", "git add ." ] } - } +}