Skip to content

Commit

Permalink
test(eslint-plugin): [no-unused-vars] add export import namespace tes…
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan authored Feb 28, 2024
1 parent 156c528 commit 6954a4a
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,14 @@ export = {} as Foo;
declare module 'foo' {
type Foo = 1;
export = Foo;
}
`,
`
namespace Foo {
export const foo = 1;
}
export namespace Bar {
export import TheFoo = Foo;
}
`,
],
Expand Down Expand Up @@ -1920,5 +1928,27 @@ export = Foo;
},
],
},
{
code: `
namespace Foo {
export const foo = 1;
}
export namespace Bar {
import TheFoo = Foo;
}
`,
errors: [
{
messageId: 'unusedVar',
line: 6,
column: 10,
data: {
varName: 'TheFoo',
action: 'defined',
additional: '',
},
},
],
},
],
});

0 comments on commit 6954a4a

Please sign in to comment.