fix(ast-spec): narrow import attribute keys to identifiers and strings - #12879
Conversation
|
Thanks for the PR, @camc314! 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. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
View your CI Pipeline Execution ↗ for commit 3f4a20e
☁️ Nx Cloud last updated this comment at |
|
Ah I can't stack PRs with forks. I've got another PR to change the value property > camc314#1 Once this is merged, i'll put up that PR. I've split the two PRs to make the changes, changelog clearer, and to make it easier to review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12879 +/- ##
==========================================
- Coverage 94.98% 90.72% -4.27%
==========================================
Files 229 523 +294
Lines 11634 17166 +5532
Branches 3867 5330 +1463
==========================================
+ Hits 11051 15573 +4522
- Misses 251 947 +696
- Partials 332 646 +314
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
4fd4418 to
64aec4c
Compare
64aec4c to
3f4a20e
Compare
|
Hi @camc314, thanks for the update! Just a quick heads-up: please try to avoid force-pushing moving forward. Rewriting history makes it harder for us to track incremental changes between reviews. Since we squash merge anyway, there is no need to keep the commit history "clean" on this branch. Standard pushes are much preferred! |
1 similar comment
|
Hi @camc314, thanks for the update! Just a quick heads-up: please try to avoid force-pushing moving forward. Rewriting history makes it harder for us to track incremental changes between reviews. Since we squash merge anyway, there is no need to keep the commit history "clean" on this branch. Standard pushes are much preferred! |
|
Oops - apologies for the force push.
Done - I've only added a single test with a number as the key to avoid a large number of additional tests to cover all literal varients. But if you want more let me know. |

PR Checklist
ImportAttribute::keytype #12874Overview
This changes the
keypart of #12874