summaryrefslogtreecommitdiff
path: root/scripts/frontend/prettier.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/frontend/prettier.js')
-rw-r--r--scripts/frontend/prettier.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/frontend/prettier.js b/scripts/frontend/prettier.js
index bf0e98da139..45cdef2ba86 100644
--- a/scripts/frontend/prettier.js
+++ b/scripts/frontend/prettier.js
@@ -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;
}
}