File tree Expand file tree Collapse file tree 2 files changed +230
-24
lines changed
Expand file tree Collapse file tree 2 files changed +230
-24
lines changed Original file line number Diff line number Diff line change 4646 "html-loader" : " ^0.4.4" ,
4747 "html-webpack-plugin" : " ^2.24.1" ,
4848 "http-proxy-middleware" : " ^0.17.3" ,
49+ "husky" : " ^0.14.3" ,
4950 "jest" : " ^20.0.0" ,
5051 "json-loader" : " 0.5.4" ,
52+ "lint-staged" : " ^4.0.1" ,
5153 "object-assign" : " ^4.1.1" ,
5254 "opn" : " 4.0.2" ,
5355 "path-exists" : " 3.0.0" ,
129131 "typecheck" : " flow check" ,
130132 "lint:embed" : " eslint src/embed" ,
131133 "add" : " all-contributors add" ,
132- "generate" : " all-contributors generate"
134+ "generate" : " all-contributors generate" ,
135+ "precommit" : " lint-staged"
136+ },
137+ "lint-staged" : {
138+ "*.js" : [" prettier --write --single-quote --trailing-comma all" , " git add" ],
139+ "*.css" : [
140+ " prettier --write --single-quote --trailing-comma all" ,
141+ " git add"
142+ ],
143+ "*.json" : [
144+ " prettier --write --single-quote --trailing-comma all" ,
145+ " git add"
146+ ]
133147 },
134148 "jest" : {
135149 "rootDir" : " src" ,
136- "moduleDirectories" : [
137- " node_modules" ,
138- " src"
139- ],
150+ "moduleDirectories" : [" node_modules" , " src" ],
140151 "moduleNameMapper" : {
141152 "\\ .css$" : " <rootDir>/__mocks__/styleMock.js"
142153 }
You can’t perform that action at this time.
0 commit comments