loose-ts-check
Version:
Run TS type-check and ignore certain errors in some files
14 lines (13 loc) • 558 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.reportValidTscErrors = void 0;
const chalk_1 = require("chalk");
function reportValidTscErrors({ log }, validTscErrors) {
if (validTscErrors.length === 0) {
return;
}
log(`${(0, chalk_1.red)(validTscErrors.length)} errors could not be ignored as those codes are not in the ignored list`);
validTscErrors.forEach((error) => log(error.rawErrorLines.join('\n')));
return { shouldFail: true };
}
exports.reportValidTscErrors = reportValidTscErrors;