-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(typescript-estree): change source
of ExportNamedDeclaration to Literal from Expression
#3763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(typescript-estree): change source
of ExportNamedDeclaration to Literal from Expression
#3763
Conversation
Thanks for the PR, @sosukesuzuki! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
source
of ExportNamedDeclaration to Literal from Expression
This is actually currently done on purpose. We have two options:
I'm happy with either - depends on if you've got time to do the extra work for (2). |
@bradzacher Thanks you for telling me.
I can work for implement option (2). However, one question. Why |
I've pushed commits to add assertion for module specifiers, but I'm not sure it is correct way. |
Codecov Report
@@ Coverage Diff @@
## v5 #3763 +/- ##
==========================================
- Coverage 92.68% 92.68% -0.01%
==========================================
Files 327 325 -2
Lines 11351 11349 -2
Branches 3201 3203 +2
==========================================
- Hits 10521 10519 -2
Misses 369 369
Partials 461 461
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks for this!
…Literal from Expression (#3763) * fix(typescript-estree): change of ExportNamedDeclaration to Literal from Expression * fix(typescript-estree): add assertion for module specifier
…Literal from Expression (#3763) * fix(typescript-estree): change of ExportNamedDeclaration to Literal from Expression * fix(typescript-estree): add assertion for module specifier
source
ofExportNamedDeclaration
isLiteral
in estree.If this is your intention, close this.