X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=.eslintrc.json;h=e71be9bc5699c80cb6215fa486e9517e992218ee;hb=923ff87da2761fd88a8ca269ac1ef403abb583d2;hp=a86c5bbbab1b333deb037702fce407947f55ce36;hpb=a15871560f80e07386c1dabb8370cd2664ecfd1f;p=oweals%2Fpeertube.git diff --git a/.eslintrc.json b/.eslintrc.json index a86c5bbba..e71be9bc5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -63,15 +63,27 @@ "allowNumber": "true" } ], + "@typescript-eslint/no-this-alias": [ + "error", + { + "allowDestructuring": true, // Allow `const { props, state } = this`; false by default + "allowedNames": ["self"] // Allow `const self = this`; `[]` by default + } + ], + + "@typescript-eslint/return-await": "off", + "@typescript-eslint/no-base-to-string": "off", "@typescript-eslint/quotes": "off", "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/promise-function-async": "off", "@typescript-eslint/no-dynamic-delete": "off", + "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off", "@typescript-eslint/strict-boolean-expressions": "off", "@typescript-eslint/consistent-type-definitions": "off", "@typescript-eslint/no-misused-promises": "off", "@typescript-eslint/no-namespace": "off", + "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-extraneous-class": "off", // bugged but useful "@typescript-eslint/restrict-plus-operands": "off"