An exported TSImportEqualsDeclaration
should be wrapped in an ExportNamedDeclaration
instead of having .isExport = true
#4130
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
AST
PRs and Issues about the AST structure
breaking change
This change will require a new major version to be released
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
Milestone
Code from #4129
I didn't know that
export import
was even valid at all in TS.Right now this will emit a
TSImportEqualsDeclaration
with.isExported = true
.This is wrong because it means that rules have to have special handling specifically for this case in order to understand
TheBar
is exported.We should breaking change fix the AST here so that the AST is instead
ExportNamedDeclaration > TSImportEqualsDeclaration
to align with everything else.The text was updated successfully, but these errors were encountered: