Просмотр исходного кода

build(lint): Put ESlint results under .artifacts (#19138)

We only upload artifacts to Zeus from .artifacts so place the ESLint file there.
Burak Yigit Kaya 4 лет назад
Родитель
Сommit
ea621220b6
1 измененных файлов с 8 добавлено и 3 удалено
  1. 8 3
      bin/eslint-travis-wrapper

+ 8 - 3
bin/eslint-travis-wrapper

@@ -27,7 +27,12 @@ console.log(consoleFormatter(report.results));
 if (otherFormatterType) {
   const otherFormatter = cli.getFormatter(otherFormatterType);
 
-  fs.writeFile('eslint.checkstyle.xml', otherFormatter(report.results), 'utf8', () => {
-    process.exit(report.errorCount);
-  });
+  fs.writeFile(
+    '.artifacts/eslint.checkstyle.xml',
+    otherFormatter(report.results),
+    'utf8',
+    () => {
+      process.exit(report.errorCount);
+    }
+  );
 }