Skip to content

Commit

Permalink
fix(eslint-plugin): [consistent-indexed-object-style] do not fix if i…
Browse files Browse the repository at this point in the history
…nterface has extends
  • Loading branch information
armano2 committed Feb 27, 2021
1 parent 5e2a993 commit 8706fc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -115,6 +115,9 @@ export default createRule<Options, MessageIds>({
},

TSInterfaceDeclaration(node): void {
if (node.extends?.length) {
return;
}
let genericTypes = '';

if ((node.typeParameters?.params ?? []).length > 0) {
Expand Down
Expand Up @@ -76,7 +76,11 @@ interface Foo {
[];
}
`,

`
interface B extends A {
[index: number]: unknown;
}
`,
// 'index-signature'
// Unhandled type
{
Expand Down

0 comments on commit 8706fc5

Please sign in to comment.