Skip to content

Commit a2f2ffd

Browse files
committed
1 parent 881d369 commit a2f2ffd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/lint/index.cjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,14 @@ async function editorconfigChecker() {
126126
header(linter);
127127
try {
128128
const dryRun = await execP(cmd + " --dry-run");
129+
const lines = dryRun.stdout.trim().split(/\n\r?/g);
130+
// EC logs when new exe is downloaded.
131+
// See https://github.com/editorconfig-checker/editorconfig-checker.javascript/blob/922e3680544a7a8783c759995e9facb94ba79511/src/index.ts#L12
132+
if (lines[0].startsWith("Downloading ")) {
133+
console.log(` ${lines.shift()}`);
134+
}
129135
console.log(
130-
dryRun.stdout
131-
.trim()
132-
.split(/\n\r?/g)
136+
lines
133137
.map((line, index, arr) => {
134138
const l = arr.length;
135139
const counter = `${pad(index + 1, String(l).length)}/${l}`;

0 commit comments

Comments
 (0)