Skip to content

Commit 2df8c0e

Browse files
committed
chore: run tests on staged files using lint-staged
1 parent 3245b57 commit 2df8c0e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.lintstagedrc.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
module.exports = {
2-
'*.{ts,tsx,js,jsx,json}': ['npm run format:file', 'npm run lint-es:file:fix'],
2+
'*.{ts,tsx,js,jsx,json}': [
3+
'npm run format:file',
4+
'npm run lint-es:file:fix',
5+
'npm run test:staged',
6+
],
37
'*.{vue,css,less,scss,html,htm,md,markdown,yml,yaml}': [
48
'npm run format:file',
59
],

0 commit comments

Comments
 (0)