Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
If you * import everything from a module, and that module contains a toString method that has function overloads, then the @typescript-eslint/no-base-to-string rule incorrectly reports that the toString call is going to use the default implementation.
The function overloads appear to be an important part of the repro. Without them the rule doesn't report anything.
Reproduction Repository Link
https://github.com/bschlenk/no-base-to-string-repro
Repro Steps
- clone the repo
pnpm install
pnpm lint
Versions
| package |
version |
typescript-eslint |
8.52.0 |
TypeScript |
5.9.3 |
ESLint |
9.39.2 |
node |
22.17.1 |
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
If you
*import everything from a module, and that module contains atoStringmethod that has function overloads, then the@typescript-eslint/no-base-to-stringrule incorrectly reports that thetoStringcall is going to use the default implementation.The function overloads appear to be an important part of the repro. Without them the rule doesn't report anything.
Reproduction Repository Link
https://github.com/bschlenk/no-base-to-string-repro
Repro Steps
pnpm installpnpm lintVersions
typescript-eslint8.52.0TypeScript5.9.3ESLint9.39.2node22.17.1