File tree 2 files changed +673
-12
lines changed 2 files changed +673
-12
lines changed Original file line number Diff line number Diff line change 31
31
"@types/jest" : " ^24.0.13" ,
32
32
"@types/node" : " ^12.0.2" ,
33
33
"cross-env" : " ^5.2.0" ,
34
+ "husky" : " ^2.7.0" ,
34
35
"jest" : " ^24.8.0" ,
36
+ "lint-staged" : " ^8.2.1" ,
37
+ "prettier" : " ^1.18.2" ,
35
38
"rollup" : " ^1.12.0" ,
36
39
"rollup-plugin-node-resolve" : " ^5.0.0" ,
37
40
"rollup-plugin-replace" : " ^2.2.0" ,
45
48
"dependencies" : {
46
49
"tslib" : " ^1.9.3"
47
50
},
51
+ "husky" : {
52
+ "hooks" : {
53
+ "pre-commit" : " lint-staged"
54
+ }
55
+ },
56
+ "lint-staged" : {
57
+ "*.js" : [
58
+ " prettier --write" ,
59
+ " git add"
60
+ ],
61
+ "*.ts" : [
62
+ " prettier --parser=typescript --write" ,
63
+ " git add"
64
+ ]
65
+ },
48
66
"jest" : {
49
67
"verbose" : true ,
50
68
"setupFilesAfterEnv" : [
60
78
"testMatch" : [
61
79
" <rootDir>/test/**/*.spec.js"
62
80
]
81
+ },
82
+ "prettier" : {
83
+ "printWidth" : 100 ,
84
+ "singleQuote" : true ,
85
+ "trailingComma" : " es5"
63
86
}
64
87
}
You can’t perform that action at this time.
0 commit comments