From: Alexander Ebert Date: Fri, 30 Oct 2020 12:50:40 +0000 (+0100) Subject: Permit the `object` type for use in legacy modules X-Git-Tag: 5.4.0_Alpha_1~666^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c40e1c302e96610ffaf253939cd752965c0a809;p=GitHub%2FWoltLab%2FWCF.git Permit the `object` type for use in legacy modules --- 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": "^_" } ]