File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -350,10 +350,12 @@ const lintFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("lin
350
350
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
351
351
const eslint = ( folder ) => async ( ) => {
352
352
353
+ const formatter = cmdLineOptions . ci ? "stylish" : "autolinkable-stylish" ;
353
354
const args = [
354
355
"node_modules/eslint/bin/eslint" ,
355
356
"--cache" ,
356
357
"--cache-location" , `${ folder } /.eslintcache` ,
358
+ "--format" , formatter ,
357
359
"--rulesdir" , "scripts/eslint/built/rules" ,
358
360
"--ext" , ".ts" ,
359
361
] ;
@@ -362,14 +364,6 @@ const eslint = (folder) => async () => {
362
364
args . push ( "--fix" ) ;
363
365
}
364
366
365
- // Use stylish format on CI, so that it can be picked up by GH Action's rule matchers
366
- if ( cmdLineOptions . ci ) {
367
- args . push ( "--format" , "stylish" ) ;
368
- }
369
- else {
370
- args . push ( "--format" , "autolinkable-stylish" ) ;
371
- }
372
-
373
367
args . push ( folder ) ;
374
368
375
369
log ( `Linting: ${ args . join ( " " ) } ` ) ;
Original file line number Diff line number Diff line change 54
54
"@types/through2" : " latest" ,
55
55
"@types/travis-fold" : " latest" ,
56
56
"@types/xml2js" : " ^0.4.0" ,
57
- "@typescript-eslint/eslint-plugin" : " ^3.4 .1-alpha.1" ,
57
+ "@typescript-eslint/eslint-plugin" : " ^3.6 .1-alpha.1" ,
58
58
"@typescript-eslint/experimental-utils" : " ^3.4.1-alpha.1" ,
59
59
"@typescript-eslint/parser" : " ^3.4.1-alpha.1" ,
60
60
"async" : " latest" ,
You can’t perform that action at this time.
0 commit comments