Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: enable unicorn/prefer-spread#9834

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

abrahamguo
Copy link
Contributor

PR Checklist

Overview

Enableunicorn/prefer-spread (docs).

I particularly like the replacements of the stylea.concat(b) =>[...a, ...b] because I like thata andb are given "equal weight" visually when they are both spread into a new array, whereas withconcat one is before theconcat and one is inside theconcat and so visually they don't have "equal weight".

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@abrahamguo!

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 onhttps://opencollective.com/typescript-eslint.

@netlifyNetlify
Copy link

netlifybot commentedAug 20, 2024
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit4f4561c
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/66d7bbc207e5b30008fd2cba
😎 Deploy Previewhttps://deploy-preview-9834--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🔴 down 4 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to yourNetlify site configuration.

@nx-cloudNx Cloud
Copy link

nx-cloudbot commentedAug 20, 2024
edited
Loading

☁️ Nx Cloud Report

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

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 29 targets

Sent with 💌 fromNxCloud.

@codecovCodecov
Copy link

codecovbot commentedAug 20, 2024
edited
Loading

Codecov Report

Attention: Patch coverage is78.57143% with3 lines in your changes missing coverage. Please review.

Project coverage is 88.12%. Comparing base(6f24fe6) to head(4f4561c).
Report is 2 commits behind head on main.

Files with missing linesPatch %Lines
packages/typescript-estree/src/convert.ts0.00%3 Missing⚠️
Additional details and impacted files
@@           Coverage Diff           @@##             main    #9834   +/-   ##=======================================  Coverage   88.12%   88.12%           =======================================  Files         406      406             Lines       13951    13951             Branches     4076     4076           =======================================  Hits        12294    12294             Misses       1344     1344             Partials      313      313
FlagCoverage Δ
unittest88.12% <78.57%> (ø)

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

Files with missing linesCoverage Δ
...eslint-plugin/src/rules/consistent-type-exports.ts95.40% <100.00%> (ø)
...ackages/eslint-plugin/src/rules/member-ordering.ts96.61% <100.00%> (ø)
packages/eslint-plugin/src/rules/no-shadow.ts80.45% <100.00%> (ø)
...es/eslint-plugin/src/rules/prefer-function-type.ts97.10% <100.00%> (ø)
...ackages/eslint-plugin/src/rules/prefer-readonly.ts97.85% <ø> (ø)
...ages/eslint-plugin/src/rules/unified-signatures.ts85.62% <ø> (ø)
packages/scope-manager/src/ScopeManager.ts77.64% <100.00%> (ø)
...ee/src/create-program/createProjectProgramError.ts100.00% <100.00%> (ø)
.../src/create-program/getWatchProgramsForProjects.ts82.85% <ø> (ø)
packages/typescript-estree/src/getModifiers.ts66.66% <100.00%> (ø)
... and5 more

@kirkwaiblinger
Copy link
Member

I agree with all these changes except the ones that use[...expr] instead ofArray.from(expr)

@abrahamguo
Copy link
ContributorAuthor

My thoughts are — it's better to use a language construct (...) rather than a function (Array.from) when available. It's shorter as well 🤷‍♂️

kirkwaiblinger and JoshuaKGoldberg reacted with thumbs up emoji

kirkwaiblinger
kirkwaiblinger previously approved these changesAug 28, 2024
Copy link
Member

@kirkwaiblingerkirkwaiblinger left a comment

Choose a reason for hiding this comment

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

Ok, works for me 🙂

@kirkwaiblingerkirkwaiblinger added the 1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge labelAug 28, 2024
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

I also like this :)

@JoshuaKGoldbergJoshuaKGoldberg merged commitbee8c9d intotypescript-eslint:mainSep 4, 2024
58 of 59 checks passed
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsSep 16, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

@kirkwaiblingerkirkwaiblingerkirkwaiblinger left review comments

Assignees
No one assigned
Labels
1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@abrahamguo@kirkwaiblinger@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp