Skip to content

Commit 9469a0b

Browse files
committed
Use stylish formatting on CI
1 parent 61a3f63 commit 9469a0b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- run: npm install
3434
- run: npm update
3535

36+
# Re: https://github.com/actions/setup-node/pull/125
3637
- name: Register Problem Matcher for TSC
3738
run: echo "##[add-matcher].github/tsc.json"
3839

Gulpfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ const eslint = (folder) => async () => {
354354
"node_modules/eslint/bin/eslint",
355355
"--cache",
356356
"--cache-location", `${folder}/.eslintcache`,
357-
"--format", "autolinkable-stylish",
358357
"--rulesdir", "scripts/eslint/built/rules",
359358
"--ext", ".ts",
360359
];
@@ -363,6 +362,14 @@ const eslint = (folder) => async () => {
363362
args.push("--fix");
364363
}
365364

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+
366373
args.push(folder);
367374

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

0 commit comments

Comments
 (0)