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(ast-spec): add SpreadElement
to ArrayExpression.elements
#5025
fix(ast-spec): add SpreadElement
to ArrayExpression.elements
#5025
Conversation
Thanks for the PR, @Josh-Cena! 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. |
👷 Deploy request for typescript-eslint pending review.Visit the deploys page to approve it
|
Codecov Report
@@ Coverage Diff @@
## main #5025 +/- ##
==========================================
+ Coverage 91.32% 91.71% +0.38%
==========================================
Files 132 361 +229
Lines 1487 12124 +10637
Branches 224 3518 +3294
==========================================
+ Hits 1358 11119 +9761
- Misses 65 657 +592
- Partials 64 348 +284
Flags with carried forward coverage won't be shown. Click here to find out more.
|
import type { Expression } from '../../unions/Expression'; | ||
|
||
export interface ArrayExpression extends BaseNode { | ||
type: AST_NODE_TYPES.ArrayExpression; | ||
elements: Expression[]; | ||
elements: (Expression | SpreadElement)[]; |
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.
I'll defer to @bradzacher here because of the recent work with snapshots. But this LGTM in general!
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.
This is correct.
We won't require any one add snapshots for changes until the migration is finished.
There are still a few bits that might need some ironing out
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.
thanks!
SpreadElement
to ArrayExpression.elements
PR Checklist
ArrayExpression
does not includeSpreadElement
as possible value of elements property #4963Overview