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" } }