Skip to content
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

Merged
merged 1 commit into from May 20, 2022

Conversation

Josh-Cena
Copy link
Member

PR Checklist

Overview

@typescript-eslint
Copy link
Contributor

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.

@netlify
Copy link

netlify bot commented May 20, 2022

👷 Deploy request for typescript-eslint pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6967973

@nx-cloud
Copy link

nx-cloud bot commented May 20, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 6967973. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 47 targets

Sent with 💌 from NxCloud.

@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Merging #5025 (6967973) into main (7e7b24c) will increase coverage by 0.38%.
The diff coverage is n/a.

@@            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     
Flag Coverage Δ
unittest 91.71% <ø> (+0.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...int-plugin/src/rules/require-array-sort-compare.ts 88.23% <0.00%> (ø)
...ckages/eslint-plugin/src/rules/no-magic-numbers.ts 80.64% <0.00%> (ø)
...kages/eslint-plugin/src/rules/no-base-to-string.ts 98.41% <0.00%> (ø)
packages/eslint-plugin/src/configs/strict.ts 100.00% <0.00%> (ø)
...es/eslint-plugin/src/rules/no-duplicate-imports.ts 97.67% <0.00%> (ø)
packages/utils/src/ts-eslint/index.ts 11.11% <0.00%> (ø)
packages/eslint-plugin-tslint/src/custom-linter.ts 100.00% <0.00%> (ø)
packages/visitor-keys/src/visitor-keys.ts 100.00% <0.00%> (ø)
packages/eslint-plugin/src/util/objectIterators.ts 66.66% <0.00%> (ø)
packages/eslint-plugin/src/rules/ban-types.ts 100.00% <0.00%> (ø)
... and 219 more

@bradzacher bradzacher added the bug Something isn't working label May 20, 2022
import type { Expression } from '../../unions/Expression';

export interface ArrayExpression extends BaseNode {
type: AST_NODE_TYPES.ArrayExpression;
elements: Expression[];
elements: (Expression | SpreadElement)[];
Copy link
Member

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!

Copy link
Member

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

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@bradzacher bradzacher changed the title fix(ast-spec): add SpreadElement to ArrayExpression.elements fix(ast-spec): add SpreadElement to ArrayExpression.elements May 20, 2022
@bradzacher bradzacher merged commit 9f3121b into typescript-eslint:main May 20, 2022
@Josh-Cena Josh-Cena deleted the fix-array-spread-ast branch May 21, 2022 02:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArrayExpression does not include SpreadElement as possible value of elements property
3 participants