Commit 95ecc752 authored by Yunus EŞ's avatar Yunus EŞ Committed by ι™ˆεΈ…

Reseting color after line (#3107)

parent b972b883
...@@ -32,7 +32,7 @@ files.forEach(file => { ...@@ -32,7 +32,7 @@ files.forEach(file => {
}; };
const isPrettier = prettier.check(input, withParserOptions); const isPrettier = prettier.check(input, withParserOptions);
if (!isPrettier) { 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; didWarn = true;
} }
} catch (e) { } catch (e) {
...@@ -43,4 +43,4 @@ files.forEach(file => { ...@@ -43,4 +43,4 @@ files.forEach(file => {
if (didWarn || didError) { if (didWarn || didError) {
process.exit(1); process.exit(1);
} }
console.log('\x1b[32m lint prettier success!'); console.log('\x1b[32m lint prettier success!\x1b[0m');
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