File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ lint-staged
Original file line number Diff line number Diff line change 40
40
"prepublishOnly" : " npm run compile && np --yolo --no-publish" ,
41
41
"postpublish" : " tnpm sync rc-menu" ,
42
42
"start" : " dumi dev" ,
43
- "test" : " rc-test"
43
+ "test" : " rc-test" ,
44
+ "prepare" : " husky && dumi setup"
44
45
},
45
46
"dependencies" : {
46
47
"@babel/runtime" : " ^7.10.1" ,
66
67
"eslint-plugin-unicorn" : " ^51.0.1" ,
67
68
"father" : " ^4.0.0" ,
68
69
"gh-pages" : " ^6.1.0" ,
70
+ "husky" : " ^9.1.6" ,
69
71
"less" : " ^4.1.3" ,
72
+ "lint-staged" : " ^15.2.10" ,
70
73
"np" : " ^10.0.5" ,
71
74
"rc-test" : " ^7.0.14" ,
72
75
"react" : " ^18.3.1" ,
77
80
"peerDependencies" : {
78
81
"react" : " >=16.9.0" ,
79
82
"react-dom" : " >=16.9.0"
83
+ },
84
+ "lint-staged" : {
85
+ "*" : " prettier --write --ignore-unknown"
80
86
}
81
87
}
You can’t perform that action at this time.
0 commit comments