X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.eslintrc.json;h=c2dd2fc446c9c7483d6b26af20dc40af2e711c4b;hb=2c9c6e653e896b9815b360bd566a657999fffb31;hp=db8e6b9c5a34c73b635535b32aa297748a3c36bb;hpb=faa9d434b4d681837ff2a87603337c2623419669;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.eslintrc.json b/.eslintrc.json index db8e6b9c5..c2dd2fc44 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -23,6 +23,7 @@ "consistent-as-needed" ], "padded-blocks": "off", + "prefer-regex-literals": "off", "no-async-promise-executor": "off", "dot-notation": "off", "promise/param-names": "off", @@ -42,7 +43,9 @@ 2, { "SwitchCase": 1, - "MemberExpression": "off" + "MemberExpression": "off", + // https://github.com/eslint/eslint/issues/15299 + "ignoredNodes": ["PropertyDefinition"] } ], "@typescript-eslint/consistent-type-assertions": [ @@ -87,6 +90,11 @@ "@typescript-eslint/no-namespace": "off", "@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" }, @@ -94,8 +102,12 @@ "node_modules/" ], "parserOptions": { + "EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true, "project": [ "./tsconfig.json", + "./shared/tsconfig.json", + "./scripts/tsconfig.json", + "./server/tsconfig.json", "./server/tools/tsconfig.json" ] }