File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 33
33
- run : npm install
34
34
- run : npm update
35
35
36
+ # Re: https://github.com/actions/setup-node/pull/125
36
37
- name : Register Problem Matcher for TSC
37
38
run : echo "##[add-matcher].github/tsc.json"
38
39
Original file line number Diff line number Diff line change @@ -354,7 +354,6 @@ const eslint = (folder) => async () => {
354
354
"node_modules/eslint/bin/eslint" ,
355
355
"--cache" ,
356
356
"--cache-location" , `${ folder } /.eslintcache` ,
357
- "--format" , "autolinkable-stylish" ,
358
357
"--rulesdir" , "scripts/eslint/built/rules" ,
359
358
"--ext" , ".ts" ,
360
359
] ;
@@ -363,6 +362,14 @@ const eslint = (folder) => async () => {
363
362
args . push ( "--fix" ) ;
364
363
}
365
364
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
+
366
373
args . push ( folder ) ;
367
374
368
375
log ( `Linting: ${ args . join ( " " ) } ` ) ;
You can’t perform that action at this time.
0 commit comments