X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.eslintrc.json;h=042254c95aca67a6a98b23bfad954568591f9e75;hb=4d7ce9218a3f695bf3d013cbdce1c5c6a5221927;hp=a86c5bbbab1b333deb037702fce407947f55ce36;hpb=134cf2bce96a8c5aefd55154e884964975d8cf23;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.eslintrc.json b/.eslintrc.json index a86c5bbba..042254c95 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", @@ -63,16 +64,31 @@ "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", "@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", + "@typescript-eslint/no-use-before-define": "off", // bugged but useful "@typescript-eslint/restrict-plus-operands": "off" },