File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 11
11
"docs" : " docsify serve docs" ,
12
12
"lerna" : " lerna" ,
13
13
"postinstall" : " lerna bootstrap" ,
14
+ "precommit" : " lint-staged" ,
14
15
"pretest" : " xo" ,
15
16
"reinstall" : " npm run clean && npm install" ,
16
17
"publish" : " lerna publish --conventional-commits" ,
17
18
"test" : " lerna run test" ,
18
19
"travis" : " trevor"
19
20
},
21
+ "lint-staged" : {
22
+ "*.js" : [
23
+ " prettier --write --use-tabs --single-quote --no-bracket-spacing" ,
24
+ " xo --fix" ,
25
+ " git add"
26
+ ]
27
+ },
20
28
"xo" : {
29
+ "extends" : [
30
+ " prettier"
31
+ ],
21
32
"ignores" : [
22
33
" @commitlint/**/lib/**" ,
23
34
" @commitlint/**/node_modules"
48
59
},
49
60
"devDependencies" : {
50
61
"docsify-cli" : " ^4.1.8" ,
62
+ "eslint-config-prettier" : " ^2.3.0" ,
51
63
"husky" : " ^0.14.3" ,
52
64
"lerna" : " ^2.0.0" ,
65
+ "lint-staged" : " ^4.0.1" ,
66
+ "prettier" : " ^1.5.2" ,
53
67
"trevor" : " ^2.3.0" ,
54
68
"xo" : " ^0.18.2"
55
69
}
You can’t perform that action at this time.
0 commit comments