File tree 2 files changed +1125
-3
lines changed
2 files changed +1125
-3
lines changed Original file line number Diff line number Diff line change 38
38
"test" : " npm run type-check && jest" ,
39
39
"type-check" : " tsc --noEmit --pretty" ,
40
40
"prettier" : " prettier --write '{src,types}/**/*.ts'" ,
41
- "sync-fixtures" : " rsync -avh --delete --stats --progress ../relay/packages/relay-compiler/language/javascript/__tests__/fixtures/flow-generator/*.graphql test/fixtures/type-generator"
41
+ "sync-fixtures" : " rsync -avh --delete --stats --progress ../relay/packages/relay-compiler/language/javascript/__tests__/fixtures/flow-generator/*.graphql test/fixtures/type-generator" ,
42
+ "precommit" : " lint-staged"
42
43
},
43
44
"dependencies" : {
44
45
"immutable" : " ^3.7.6" ,
60
61
"@types/node" : " 8.5.7" ,
61
62
"@types/relay-runtime" : " ^1.3.1" ,
62
63
"graphql" : " ^0.13.2" ,
64
+ "husky" : " ^1.1.0" ,
63
65
"jest" : " ^22.1.4" ,
66
+ "lint-staged" : " ^7.3.0" ,
64
67
"prettier" : " ^1.10.2" ,
65
68
"relay-compiler" : " https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-compiler-1.6.1-plugin.1.tgz" ,
66
69
"relay-runtime" : " https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-runtime-1.6.1-plugin.1.tgz" ,
84
87
" ts" ,
85
88
" tsx"
86
89
]
90
+ },
91
+ "lint-staged" : {
92
+ "{src,types}/**/*.ts" : [
93
+ " prettier --write" ,
94
+ " git add"
95
+ ]
87
96
}
88
97
}
You can’t perform that action at this time.
0 commit comments