Updating eslint settings to allow function overloading in Typescript.

This commit is contained in:
mike12345567 2024-05-16 13:39:16 +01:00
parent 06d6d84b55
commit 39ce040b1c
1 changed files with 6 additions and 2 deletions

View File

@ -55,7 +55,9 @@
}
],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": "error"
"@typescript-eslint/no-redeclare": "error",
// have to turn this off to allow function overloading in typescript
"no-dupe-class-members": "off"
}
},
{
@ -88,7 +90,9 @@
"jest/expect-expect": "off",
// We do this in some tests where the behaviour of internal tables
// differs to external, but the API is broadly the same
"jest/no-conditional-expect": "off"
"jest/no-conditional-expect": "off",
// have to turn this off to allow function overloading in typescript
"no-dupe-class-members": "off"
}
},
{