Skip to content

bug(semantic): TSImportEqualsDeclaration does not create a symbol #4091

@DonIsaac

Description

@DonIsaac
import foo = require('./foo') // `foo` is not added to the symbol table
const bar = require('./bar')  // but `bar` is

Playground Link

This causes a false positive in jsx-no-undef (example)

import Foo = require('./bar')

const Component = () => <Foo />

Metadata

Metadata

Assignees

Labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions