Disable array type linting

There doesn't seem to be a way of allowing `MyType[]` but
disallowing `(string | number)[]` in lieu of
`Array<string | number>` so I'm just disabling it
completely
This commit is contained in:
Oliver Blanthorn 2020-12-10 22:56:16 +01:00
parent 65183e52e9
commit 90ee6410ca
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -39,12 +39,7 @@ module.exports = {
"sonarjs/no-duplicate-string": "off", "sonarjs/no-duplicate-string": "off",
"sonarjs/no-unused-collection": "off", //"error", // There seems to be a bug with this rule - exported collections are assumed unused "sonarjs/no-unused-collection": "off", //"error", // There seems to be a bug with this rule - exported collections are assumed unused
"@typescript-eslint/adjacent-overload-signatures": "error", "@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [ "@typescript-eslint/array-type": "off",
"error",
{
"default": "array-simple"
}
],
"@typescript-eslint/await-thenable": "error", "@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error", "@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/ban-types": [ "@typescript-eslint/ban-types": [