File tree Expand file tree Collapse file tree 4 files changed +444
-7
lines changed Expand file tree Collapse file tree 4 files changed +444
-7
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 1
1
{
2
2
"devDependencies" : {
3
3
"@vuepress/plugin-pwa" : " ^1.5.4" ,
4
+ "husky" : " ^6.0.0" ,
5
+ "lint-staged" : " ^10.5.4" ,
6
+ "prettier" : " ^2.2.1" ,
4
7
"sass" : " ^1.32.0" ,
5
8
"sass-loader" : " ^8.0.2" ,
6
9
"vuepress" : " ^1.5.4"
7
10
},
8
11
"scripts" : {
9
12
"dev" : " yarn serve" ,
10
13
"serve" : " vuepress dev src" ,
11
- "build" : " vuepress build src"
14
+ "build" : " vuepress build src" ,
15
+ "prepare" : " husky install"
12
16
},
13
17
"dependencies" : {
14
18
"@docsearch/css" : " ^1.0.0-alpha.27" ,
17
21
"axios" : " ^0.21.1" ,
18
22
"intersection-observer" : " ^0.11.0" ,
19
23
"showdown" : " ^1.9.1"
24
+ },
25
+ "lint-staged" : {
26
+ "*" : " prettier --check --write --ignore-unknown"
20
27
}
21
28
}
You can’t perform that action at this time.
0 commit comments