File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
. " $( dirname " $0 " ) /_/husky.sh"
3
3
4
- npx lerna run precommit --stream --since HEAD --exclude-dependents
4
+ npx lint-staged
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ "**/*.{js}" : "eslint --fix" ,
3
+ "**/*.{ts,tsx}" : [
4
+ ( ) => "npm run check-types --workspace=@toast-ui/calendar" ,
5
+ "eslint --fix"
6
+ ] ,
7
+ "**/*.css" : "stylelint"
8
+ }
Original file line number Diff line number Diff line change 44
44
"tui-date-picker" : " ^4.0.1" ,
45
45
"tui-time-picker" : " ^2.0.1"
46
46
},
47
- "lint-staged" : {
48
- "**/*.{js,ts,tsx}" : [
49
- " bash -c tsc --noEmit" ,
50
- " eslint --fix"
51
- ],
52
- "**/*.css" : " stylelint"
53
- },
54
47
"scripts" : {
55
48
"check-types" : " tsc --project ./tsconfig.json --noEmit" ,
56
49
"validate" : " npm run check-types && npm run lint" ,
68
61
"storybook:build:docs" : " STORYBOOK_ENV=docs build-storybook" ,
69
62
"ts2js" : " tsc --outDir tmpdoc --sourceMap false --target ES2015 --noEmit false" ,
70
63
"doc:dev" : " npm run build:prod && npm run ts2js && tuidoc --serv" ,
71
- "doc" : " npm run ts2js && tuidoc" ,
72
- "precommit" : " lint-staged"
64
+ "doc" : " npm run ts2js && tuidoc"
73
65
}
74
66
}
You can’t perform that action at this time.
0 commit comments