summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-23 12:09:47 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-23 12:09:47 +0000
commit8f9beefac3774b30e911fb00a68f4c7a5244cf27 (patch)
tree919c3a043f8c10bc3f78f3f6e029acfb6b972556 /scripts
parente4bf776a8829e5186a0f63603c0be627b891d80e (diff)
downloadgitlab-ce-8f9beefac3774b30e911fb00a68f4c7a5244cf27.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-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;
}
}