Skip to content

Commit 199eb5d

Browse files
committed
[build] Better lint
1 parent 24e853e commit 199eb5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gulpfile.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,15 +391,15 @@ const lintCheckDocs = async (dir) => {
391391
UTF8,
392392
);
393393
}
394-
const results = await esLint.lintText(code);
394+
const results = await esLint.lintText(pretty);
395395
if (
396396
results.filter(
397397
(result) => result.errorCount > 0 || result.warningCount > 0,
398398
).length > 0
399399
) {
400400
const formatter = await esLint.loadFormatter();
401401
const errors = await formatter.format(results);
402-
throw `${filePath} does not lint:\n${code}\n\n${errors}`;
402+
throw `${filePath} does not lint:\n${pretty}\n\n${errors}`;
403403
}
404404
},
405405
);

0 commit comments

Comments
 (0)