X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.eslintrc.json;h=db8e6b9c5a34c73b635535b32aa297748a3c36bb;hb=5ab7fd9da92463ade6b31d49bdc0f559174b4c57;hp=8160753bd2f5dbb9cba142e5c708ed6872c913e6;hpb=d96994289b24c4bbd056660c5fe11fff0f77635e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.eslintrc.json b/.eslintrc.json index 8160753bd..db8e6b9c5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -63,8 +63,17 @@ "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/dot-notation": "off", + "@typescript-eslint/method-signature-style": "off", "@typescript-eslint/no-base-to-string": "off", "@typescript-eslint/quotes": "off", "@typescript-eslint/no-var-requires": "off", @@ -76,6 +85,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"