From 95ecc752dd44528e5825eea63b9f84c09dadb877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20E=C5=9E?= Date: Thu, 13 Dec 2018 10:20:15 +0300 Subject: [PATCH] Reseting color after line (#3107) --- scripts/lint-prettier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lint-prettier.js b/scripts/lint-prettier.js index 7d4d5cd5..eef8a74a 100644 --- a/scripts/lint-prettier.js +++ b/scripts/lint-prettier.js @@ -32,7 +32,7 @@ files.forEach(file => { }; const isPrettier = prettier.check(input, withParserOptions); if (!isPrettier) { - console.log(`\x1b[31m ${file} is no prettier, please use npm run prettier and git add !`); + console.log(`\x1b[31m ${file} is no prettier, please use npm run prettier and git add !\x1b[0m`); didWarn = true; } } catch (e) { @@ -43,4 +43,4 @@ files.forEach(file => { if (didWarn || didError) { process.exit(1); } -console.log('\x1b[32m lint prettier success!'); +console.log('\x1b[32m lint prettier success!\x1b[0m'); -- GitLab