Skip to content

Commit 615f617

Browse files
chore: add lint-staged for running the lint & test scripts (#1349)
* chore(husky): add `pre-push` hook * feat: add `lint-staged` for running scripts * style: fix lint issue * chore: remove lint-staged as devDep * fix: remove pre-push hook Signed-off-by: Vinayak Kulkarni <[email protected]>
1 parent ae369b2 commit 615f617

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run lint
5-
npm run test
4+
npx --no-install lint-staged

lint-staged.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
'*.{js,ts}': 'npm run lint && npm test'
3+
}

0 commit comments

Comments
 (0)