From e482111a56b6acb91c9ffbb34fd17f526236cc0b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 5 Sep 2024 15:41:10 +0200 Subject: [PATCH] front: turn on eslint recommended type checked hints See https://typescript-eslint.io/getting-started/typed-linting/ Signed-off-by: Simon Ser --- front/.eslintrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/front/.eslintrc b/front/.eslintrc index a8d736ad852..d12c9d9086d 100644 --- a/front/.eslintrc +++ b/front/.eslintrc @@ -12,7 +12,7 @@ "plugin:import/recommended", "plugin:import/typescript", "prettier", - "plugin:@typescript-eslint/base" + "plugin:@typescript-eslint/recommended-type-checked" ], "plugins": ["import", "only-warn", "prettier", "react", "react-hooks", "vitest"], "parserOptions": { @@ -43,9 +43,6 @@ "@typescript-eslint/consistent-type-imports": ["error", { "fixStyle": "inline-type-imports" }], "@typescript-eslint/no-shadow": "error", "@typescript-eslint/no-use-before-define": "error", - "@typescript-eslint/no-unnecessary-type-assertion": "error", - "@typescript-eslint/no-unsafe-return": "error", - "@typescript-eslint/no-unsafe-call": "error", "@typescript-eslint/non-nullable-type-assertion-style": "error", "@typescript-eslint/no-restricted-types": [