Closed
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
{
"rules": {
"@typescript-eslint/consistent-indexed-object-style": ["error", "record"]
}
}
interface A {
a: unknown;
}
interface B extends A {
[index: number]: unknown;
}
Expected Result
no change
Actual Result
interface A {
a: unknown;
}
type B = Record<number, unknown>;
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.14.2 |
@typescript-eslint/parser |
4.14.2 |
TypeScript |
4.1.3 |
ESLint |
7.19.0 |
node |
14.15.4 |