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 24e853e commit 199eb5dCopy full SHA for 199eb5d
1 file changed
gulpfile.mjs
@@ -391,15 +391,15 @@ const lintCheckDocs = async (dir) => {
391
UTF8,
392
);
393
}
394
- const results = await esLint.lintText(code);
+ const results = await esLint.lintText(pretty);
395
if (
396
results.filter(
397
(result) => result.errorCount > 0 || result.warningCount > 0,
398
).length > 0
399
) {
400
const formatter = await esLint.loadFormatter();
401
const errors = await formatter.format(results);
402
- throw `${filePath} does not lint:\n${code}\n\n${errors}`;
+ throw `${filePath} does not lint:\n${pretty}\n\n${errors}`;
403
404
},
405
0 commit comments