From 325cfde2a670c6cf8e2169bfc50dc18724e66d8d Mon Sep 17 00:00:00 2001 From: diogo-nogueira-freiheit Date: Thu, 10 Oct 2024 18:51:22 +0200 Subject: [PATCH] Changed linting to strict and added corresponding test --- services/frontend-service/package.json | 4 ++-- services/frontend-service/src/ui/App/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/frontend-service/package.json b/services/frontend-service/package.json index 4143a80f2..e72539359 100644 --- a/services/frontend-service/package.json +++ b/services/frontend-service/package.json @@ -37,8 +37,8 @@ "build": "GENERATE_SOURCEMAP=false react-scripts build", "test": "TC=Europe/Berlin react-scripts test --color", "start": "WATCHPACK_POLLING=true CHOKIDAR_USEPOLLING=true react-scripts start", - "eslint-check": "eslint --cache --cache-location 'misc/.eslintcache' --ext .ts,.tsx src/", - "eslint-fix": "eslint --fix --cache --cache-location 'misc/.eslintcache' --ext .ts,.tsx src/", + "eslint-check": "eslint --cache --max-warnings 0 --cache-location 'misc/.eslintcache' --ext .ts,.tsx src/", + "eslint-fix": "eslint --fix --cache --max-warnings 0 --cache-location 'misc/.eslintcache' --ext .ts,.tsx src/", "circular-check": "madge -c --extensions ts,tsx --ts-config tsconfig.json --no-spinner src/", "scss-check": "prettier -c --parser scss 'src/**/*.scss'", "scss-fix": "prettier --write --parser scss 'src/**/*.scss'" diff --git a/services/frontend-service/src/ui/App/index.tsx b/services/frontend-service/src/ui/App/index.tsx index 63775fd48..67e630371 100644 --- a/services/frontend-service/src/ui/App/index.tsx +++ b/services/frontend-service/src/ui/App/index.tsx @@ -72,7 +72,7 @@ export const App: React.FC = () => { if (kuberpultVersion !== '') { document.title = 'Kuberpult ' + kuberpultVersion; } - }, [kuberpultVersion, api]); + }, [api]); React.useEffect(() => { api.configService()