From 80c9dae41714180ce6bdb5bf9052086ca95280c5 Mon Sep 17 00:00:00 2001 From: Yury Bondarenko Date: Mon, 8 May 2023 17:10:00 +0200 Subject: [PATCH] ESLint: enforce ban-types https://typescript-eslint.io/rules/ban-types/ --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9279c61b90..84a7cc4bfa 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -181,7 +181,7 @@ ], "@typescript-eslint/type-annotation-spacing": "error", "@typescript-eslint/unified-signatures": "error", - "@typescript-eslint/ban-types": "warn", // todo: deal with {} type issues & re-enable + "@typescript-eslint/ban-types": "error", "@typescript-eslint/no-floating-promises": "warn", "@typescript-eslint/no-misused-promises": "warn", "@typescript-eslint/restrict-plus-operands": "warn",