diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-23 12:09:47 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-23 12:09:47 +0000 |
commit | 8f9beefac3774b30e911fb00a68f4c7a5244cf27 (patch) | |
tree | 919c3a043f8c10bc3f78f3f6e029acfb6b972556 /scripts | |
parent | e4bf776a8829e5186a0f63603c0be627b891d80e (diff) | |
download | gitlab-ce-8f9beefac3774b30e911fb00a68f4c7a5244cf27.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/frontend/prettier.js | 9 |
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; } } |