Permit the `object` type for use in legacy modules
authorAlexander Ebert <ebert@woltlab.com>
Fri, 30 Oct 2020 12:50:40 +0000 (13:50 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 30 Oct 2020 12:50:40 +0000 (13:50 +0100)
.eslintrc.js

index 04aec1c84fa9ee6e670c9baa355843b8cc6695a1..70cc12846f54007658a4f468531b7c0932eb4df8 100644 (file)
@@ -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": "^_"
       }
     ]