Skip to content

Commit db501c6

Browse files
committed
Retain the original eslint arg order
1 parent 3593c28 commit db501c6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Gulpfile.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,12 @@ const lintFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("lin
350350
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
351351
const eslint = (folder) => async () => {
352352

353+
const formatter = "autolinkable-stylish";// cmdLineOptions.ci ? "stylish" : "autolinkable-stylish";
353354
const args = [
354355
"node_modules/eslint/bin/eslint",
355356
"--cache",
356357
"--cache-location", `${folder}/.eslintcache`,
358+
"--format", formatter,
357359
"--rulesdir", "scripts/eslint/built/rules",
358360
"--ext", ".ts",
359361
];
@@ -362,14 +364,6 @@ const eslint = (folder) => async () => {
362364
args.push("--fix");
363365
}
364366

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-
373367
args.push(folder);
374368

375369
log(`Linting: ${args.join(" ")}`);

0 commit comments

Comments
 (0)