Kaynağa Gözat

frontend wf restrict warnings (#1655)

Ruslan Ibragimov 3 yıl önce
ebeveyn
işleme
9cfbf20b70

+ 1 - 1
.github/workflows/frontend.yaml

@@ -42,7 +42,7 @@ jobs:
       - name: Linter
         run: |
           cd kafka-ui-react-app/
-          npm run lint
+          npm run lint:CI
       - name: Tests
         run: |
           cd kafka-ui-react-app/

+ 1 - 0
kafka-ui-react-app/package.json

@@ -55,6 +55,7 @@
     "build": "react-scripts build",
     "lint": "eslint --ext .tsx,.ts src/",
     "lint:fix": "eslint --ext .tsx,.ts src/ --fix",
+    "lint:CI": "eslint --ext .tsx,.ts src/ --max-warnings=0",
     "test": "react-scripts test",
     "test:CI": "CI=true npm test  -- --coverage --ci --testResultsProcessor=\"jest-sonar-reporter\" --watchAll=false",
     "eject": "react-scripts eject",