Procházet zdrojové kódy

HUE-8855 [ci] Adding linting of js files

Only adds 20s
Romain před 6 roky
rodič
revize
0d73b2a38f
1 změnil soubory, kde provedl 8 přidání a 6 odebrání
  1. 8 6
      .circleci/config.yml

+ 8 - 6
.circleci/config.yml

@@ -87,12 +87,14 @@ jobs:
             cp ~/repo/.babelrc .
             npm run test
 
-      # # Code analyses
-      # - run:
-      #     name: run js tests
-      #     command: |
-      #       cd /usr/share/hue
-      #       npm run lint
+      # Code analyses
+      - run:
+          name: run js lint
+          command: |
+            cd /usr/share/hue
+            cp ~/repo/.eslint* .
+            cp ~/repo/.prettierrc .
+            npm run lint
 
       - store_artifacts:
           path: test-reports