From 7c40e1c302e96610ffaf253939cd752965c0a809 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 30 Oct 2020 13:50:40 +0100 Subject: [PATCH] Permit the `object` type for use in legacy modules --- .eslintrc.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 04aec1c84f..70cc12846f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,6 +14,14 @@ module.exports = { "prettier/@typescript-eslint" ], rules: { + "@typescript-eslint/ban-types": [ + "error", { + types: { + "object": false + }, + extendDefaults: true + } + ], "@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/no-non-null-assertion": 0, "@typescript-eslint/no-unsafe-assignment": 0, @@ -21,8 +29,7 @@ module.exports = { "@typescript-eslint/no-unsafe-member-access": 0, "@typescript-eslint/no-unsafe-return": 0, "@typescript-eslint/no-unused-vars": [ - "error", - { + "error", { "argsIgnorePattern": "^_" } ] -- 2.20.1