File tree 3 files changed +9
-15
lines changed
3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change
1
+ _
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npx lint-staged
Original file line number Diff line number Diff line change 51
51
"lint" : " eslint . --ext .ts --ignore-path .gitignore --fix" ,
52
52
"postinstall" : " npm run bootstrap" ,
53
53
"prettier" : " prettier --write --parser typescript '**/*.ts'" ,
54
- "test" : " lerna run --stream test"
55
- },
56
- "husky" : {
57
- "hooks" : {
58
- "pre-commit" : " lint-staged" ,
59
- "commit-msg" : " ts-node scripts/verify-commit.ts"
60
- }
54
+ "test" : " lerna run --stream test" ,
55
+ "prepare" : " husky install"
61
56
},
62
57
"lint-staged" : {
63
- "*.js" : [
64
- " prettier --write --ignore-path .gitignore" ,
65
- " git add"
66
- ],
67
- "*.ts" : [
68
- " npm run prettier" ,
69
- " git add"
70
- ]
58
+ "*.ts" : " eslint --cache --fix" ,
59
+ "*.{js,css,md}" : " prettier --write"
71
60
}
72
61
}
You can’t perform that action at this time.
0 commit comments