X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.eslintrc.json;h=4e80ff2246f657b3907292e4f489e7116e023488;hb=ce722c0f0fe081ce3308b857158810def93f161e;hp=c2dd2fc446c9c7483d6b26af20dc40af2e711c4b;hpb=ba2684ceddf9b76312635b9cddc6bf6975ce436a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.eslintrc.json b/.eslintrc.json index c2dd2fc44..4e80ff224 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -38,6 +38,7 @@ } } ], + "quotes": "off", "@typescript-eslint/indent": [ "error", 2, @@ -78,7 +79,14 @@ "@typescript-eslint/dot-notation": "off", "@typescript-eslint/method-signature-style": "off", "@typescript-eslint/no-base-to-string": "off", - "@typescript-eslint/quotes": "off", + "@typescript-eslint/quotes": [ + "error", + "single", + { + "avoidEscape": true, + "allowTemplateLiterals": true + } + ], "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/promise-function-async": "off", @@ -96,10 +104,30 @@ "@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, @@ -108,7 +136,8 @@ "./shared/tsconfig.json", "./scripts/tsconfig.json", "./server/tsconfig.json", - "./server/tools/tsconfig.json" + "./server/tools/tsconfig.json", + "./packages/peertube-runner/tsconfig.json" ] } }