Commit b67ee058 authored by Mark Florian's avatar Mark Florian

Merge branch 'psi-prettier-prettier' into 'master'

Make Prettier failures prettier

See merge request gitlab-org/gitlab!26937
parents e9ddfc68 f1606fa1
......@@ -78,10 +78,15 @@ const checkFileWithOptions = (filePath, options) =>
passedCount += 1;
} else {
if (!didWarn) {
console.log(warningMessage);
// \x1b[31m make text red
// \x1b[1m make text bold
// %s warningMessage
// \x1b[0m reset text color (so logs after aren't red)
const redBoldText = '\x1b[1m\x1b[31;1m%s\x1b[0m';
console.log(redBoldText, warningMessage);
didWarn = true;
}
console.log(`Prettify Manually : ${filePath}`);
console.log(`yarn prettier --write ${filePath}`);
failedCount += 1;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment