Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(hook): improves eslint precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
matteovivona committed Feb 7, 2020
1 parent 61fe8ab commit 639f122
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn test:ci",
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
Expand All @@ -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 ."
]
}
}
}

0 comments on commit 639f122

Please sign in to comment.