fix(linter/no-empty-interface): add missing test (#2979)

As requested add new test
https://github.com/oxc-project/oxc/pull/2973#discussion_r1564728188

---------

Co-authored-by: j.buendia <j.buendia>
This commit is contained in:
Jose 2024-04-14 16:33:59 +02:00 committed by GitHub
parent b6b63ac9bc
commit 627dd424cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -128,6 +128,7 @@ fn test() {
let fail = vec![
("interface Foo {}", None),
("interface Foo extends {}", None),
(
"
interface Foo {

View file

@ -8,6 +8,11 @@ expression: no_empty_interface
· ────────────────
╰────
× Expected `{` but found `EOF`
╭─[no_empty_interface.tsx:1:25]
1 │ interface Foo extends {}
╰────
⚠ typescript-eslint(no-empty-interface): an interface declaring no members is equivalent to its supertype
╭─[no_empty_interface.tsx:6:4]
5 │