X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.eslintrc.json;h=770913bf103e6ead70beca46f52267cf179a9c16;hb=b3a55bfaa813de4802f857cf7d1ac06b27d9aeb1;hp=042254c95aca67a6a98b23bfad954568591f9e75;hpb=cf21b2cbef61929177b9c09b5e017c3b7eb8535d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.eslintrc.json b/.eslintrc.json index 042254c95..770913bf1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -38,12 +38,15 @@ } } ], + "quotes": "off", "@typescript-eslint/indent": [ "error", 2, { "SwitchCase": 1, - "MemberExpression": "off" + "MemberExpression": "off", + // https://github.com/eslint/eslint/issues/15299 + "ignoredNodes": ["PropertyDefinition"] } ], "@typescript-eslint/consistent-type-assertions": [ @@ -76,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", @@ -89,6 +99,10 @@ "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-extraneous-class": "off", "@typescript-eslint/no-use-before-define": "off", + + "require-await": "off", + "@typescript-eslint/require-await": "error", + // bugged but useful "@typescript-eslint/restrict-plus-operands": "off" }, @@ -96,8 +110,12 @@ "node_modules/" ], "parserOptions": { + "EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true, "project": [ "./tsconfig.json", + "./shared/tsconfig.json", + "./scripts/tsconfig.json", + "./server/tsconfig.json", "./server/tools/tsconfig.json" ] }