We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a3f63 commit 7e600f1Copy full SHA for 7e600f1
Gulpfile.js
@@ -354,7 +354,6 @@ const eslint = (folder) => async () => {
354
"node_modules/eslint/bin/eslint",
355
"--cache",
356
"--cache-location", `${folder}/.eslintcache`,
357
- "--format", "autolinkable-stylish",
358
"--rulesdir", "scripts/eslint/built/rules",
359
"--ext", ".ts",
360
];
@@ -363,6 +362,14 @@ const eslint = (folder) => async () => {
363
362
args.push("--fix");
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
+
373
args.push(folder);
374
375
log(`Linting: ${args.join(" ")}`);
0 commit comments