From 66076e63c39826f6099e439433f843a864ce255c Mon Sep 17 00:00:00 2001 From: ocBruno Date: Sun, 2 Feb 2020 04:26:58 -0300 Subject: [PATCH] fix(build): modify husky and lint-staged config to fix lint issue fix #1775 --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 1cd89f943c..302d1e8e28 100644 --- a/package.json +++ b/package.json @@ -120,6 +120,7 @@ }, "husky": { "hooks": { + "pre-commit": "lint-staged", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, @@ -129,10 +130,9 @@ } }, "lint-staged": { - "**/*.{js,jsx,ts,tsx}": [ - "npm run lint", - "npm run test:ci", - "git add ." - ] + "*.{js,jsx,ts,tsx}": [ + "eslint --fix" + ], + "*.js": "eslint --cache --fix" } }