]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - .eslintrc.json
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / .eslintrc.json
index 770913bf103e6ead70beca46f52267cf179a9c16..4e80ff2246f657b3907292e4f489e7116e023488 100644 (file)
     "@typescript-eslint/require-await": "error",
 
     // bugged but useful
-    "@typescript-eslint/restrict-plus-operands": "off"
+    "@typescript-eslint/restrict-plus-operands": "off",
+
+    // Requires strictNullChecks
+    "@typescript-eslint/prefer-nullish-coalescing": "off",
+    "@typescript-eslint/consistent-type-imports": "off",
+    "@typescript-eslint/consistent-indexed-object-style": "off",
+    "@typescript-eslint/no-confusing-void-expression": "off",
+    "@typescript-eslint/consistent-type-exports": "off",
+    "@typescript-eslint/key-spacing": "off",
+
+    "@typescript-eslint/ban-types": [
+      "error",
+      {
+        "types": {
+          "{}": false,
+          "Function": false
+        },
+        "extendDefaults": true
+      }
+    ]
   },
   "ignorePatterns": [
-    "node_modules/"
+    "node_modules/",
+    "server/tests/fixtures"
   ],
   "parserOptions": {
     "EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true,
       "./shared/tsconfig.json",
       "./scripts/tsconfig.json",
       "./server/tsconfig.json",
-      "./server/tools/tsconfig.json"
+      "./server/tools/tsconfig.json",
+      "./packages/peertube-runner/tsconfig.json"
     ]
   }
 }