chore: fix ESLint violation and lessen rule strictness (#6081)

This commit is contained in:
Jack Franklin
2020-06-23 12:55:42 +01:00
committed by GitHub
parent fdc6fda46e
commit 70a900e93b
37 changed files with 285 additions and 101 deletions

View File

@@ -100,6 +100,11 @@ module.exports = {
"@typescript-eslint/semi": 2,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-use-before-define": 0,
// We have to use any on some types so the warning isn't valuable.
"@typescript-eslint/no-explicit-any": 0,
// We don't require explicit return types on basic functions or
// dummy functions in tests, for example
"@typescript-eslint/explicit-function-return-type": 0,
// We know it's bad and use it very sparingly but it's needed :(
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/array-type": [2, {