X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=.eslintrc.json;h=e71be9bc5699c80cb6215fa486e9517e992218ee;hb=ee8e602ef9761b4869e14d4d3ed24a2e18f22c65;hp=8160753bd2f5dbb9cba142e5c708ed6872c913e6;hpb=d96994289b24c4bbd056660c5fe11fff0f77635e;p=oweals%2Fpeertube.git diff --git a/.eslintrc.json b/.eslintrc.json index 8160753bd..e71be9bc5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -63,6 +63,13 @@ "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", @@ -76,6 +83,7 @@ "@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"