X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=.eslintrc.json;fp=.eslintrc.json;h=df928488204eac05c58af2dc6f848ee7ea625b09;hb=e65ef81cf51746616182a822bd6933bf0d16717a;hp=770913bf103e6ead70beca46f52267cf179a9c16;hpb=5bfe684e76d32a7745671635f8a75f932bd522e4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.eslintrc.json b/.eslintrc.json index 770913bf1..df9284882 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -104,7 +104,26 @@ "@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/"