File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
packages/eslint-plugin/src/rules Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -312,23 +312,6 @@ export default createRule<Options, MessageIds>({
312
312
markDeclarationChildAsUsed ( node ) ;
313
313
} ,
314
314
315
- // module declaration in module declaration should not report unused vars error
316
- // this is workaround as this change should be done in better way
317
- 'TSModuleDeclaration > TSModuleDeclaration' (
318
- node : TSESTree . TSModuleDeclaration ,
319
- ) : void {
320
- if ( node . id . type === AST_NODE_TYPES . Identifier ) {
321
- let scope = getScope ( context ) ;
322
- if ( scope . upper ) {
323
- scope = scope . upper ;
324
- }
325
- const superVar = scope . set . get ( node . id . name ) ;
326
- if ( superVar ) {
327
- superVar . eslintUsed = true ;
328
- }
329
- }
330
- } ,
331
-
332
315
// children of a namespace that is a child of a declared namespace are auto-exported
333
316
[ ambientDeclarationSelector (
334
317
'TSModuleDeclaration[declare = true] > TSModuleBlock TSModuleDeclaration > TSModuleBlock' ,
You can’t perform that action at this time.
0 commit comments