File tree 2 files changed +2414
-64
lines changed 2 files changed +2414
-64
lines changed Original file line number Diff line number Diff line change 45
45
"debug" : " NODE_ENV=debug npm run test -- -st --fail-fast" ,
46
46
"dev" : " npm run lint-config-and-fix && npm run lint-and-fix && npm run cover -- -- -st --fail-fast" ,
47
47
"install-hooks" : " husky install" ,
48
- "lint" : " true" ,
48
+ "lint" : " xo" ,
49
+ "lint-and-fix" : " npm run lint -- --fix" ,
49
50
"lint-config" : " fixpack --dryRun" ,
50
51
"lint-config-and-fix" : " fixpack || fixpack" ,
51
52
"postinstall" : " npm run install-hooks" ,
82
83
"np" : " 7.4.0" ,
83
84
"pinst" : " 2.1.6" ,
84
85
"power-assert" : " 1.6.1" ,
85
- "regenerator-runtime" : " 0.13.7"
86
+ "regenerator-runtime" : " 0.13.7" ,
87
+ "xo" : " 0.38.2"
86
88
},
87
89
"ava" : {
88
90
"files" : [
175
177
]
176
178
}
177
179
}
180
+ },
181
+ "prettier" : {
182
+ "trailingComma" : " all"
183
+ },
184
+ "xo" : {
185
+ "prettier" : true ,
186
+ "plugins" : [
187
+ " unicorn"
188
+ ],
189
+ "rules" : {
190
+ "unicorn/filename-case" : [
191
+ " error" ,
192
+ {
193
+ "cases" : {
194
+ "camelCase" : true ,
195
+ "pascalCase" : true
196
+ }
197
+ }
198
+ ]
199
+ },
200
+ "overrides" : [
201
+ {
202
+ "files" : [
203
+ " doc/**"
204
+ ],
205
+ "env" : " browser"
206
+ }
207
+ ]
178
208
}
179
209
}
You can’t perform that action at this time.
0 commit comments