mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
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:
parent
b6b63ac9bc
commit
627dd424cb
2 changed files with 6 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ fn test() {
|
|||
|
||||
let fail = vec![
|
||||
("interface Foo {}", None),
|
||||
("interface Foo extends {}", None),
|
||||
(
|
||||
"
|
||||
interface Foo {
|
||||
|
|
|
|||
|
|
@ -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 │
|
||||
|
|
|
|||
Loading…
Reference in a new issue