diff --git a/packages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars.test.ts b/packages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars.test.ts index 2bbdfd86aa08..04c218b7631e 100644 --- a/packages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars.test.ts +++ b/packages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars.test.ts @@ -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; } `, ], @@ -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: '', + }, + }, + ], + }, ], }); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy