Explorar el Código

Reseting color after line (#3107)

Yunus EŞ hace 7 años
padre
commit
95ecc752dd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      scripts/lint-prettier.js

+ 2 - 2
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');