Skip to content

Commit 8a2c674

Browse files
test(no-class-inheritance): check interface and implements don't cause issues
1 parent 53df2fd commit 8a2c674

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/rules/no-class-inheritance.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ describe(name, () => {
8080
configs: typescriptConfig,
8181
});
8282

83+
it("doesn't report non-issues", () => {
84+
valid("class Foo {}");
85+
valid("class Foo implements Bar {}");
86+
valid("interface Foo extends Bar {}");
87+
});
88+
8389
it("reports class inheritance", () => {
8490
const invalidResult1 = invalid({
8591
code: "abstract class Foo {}",

0 commit comments

Comments
 (0)