Skip to content

Commit b34348d

Browse files
author
Larry Botha
committed
chore(lint-staged): use staged files in pre-commit instead of full test pipeline
1 parent ed6c52d commit b34348d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.husky/pre-commit

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

4-
npm test
4+
npx lint-staged

.lintstagedrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
'*.{svelte,js,ts}': ['eslint', 'prettier --write'],
3+
};

0 commit comments

Comments
 (0)