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

fix(eslint-plugin): replace auto-fix of class literal property style rule with suggestion#7054

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

Conversation

@Melandra
Copy link
Contributor

@MelandraMelandra commentedMay 23, 2023
edited
Loading

PR Checklist

Overview

This PR changes the fixer for the class literal property style rule in the eslint-plugin package from an autofixer to a suggestion fixer.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@Melandra!

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.

@netlify
Copy link

netlifybot commentedMay 23, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit8fdefa1
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/64ab0bfc771b4e000877943b
😎 Deploy Previewhttps://deploy-preview-7054--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@nx-cloud
Copy link

nx-cloudbot commentedMay 23, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit8fdefa1. 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 25 targets

Sent with 💌 fromNxCloud.

@codecov
Copy link

codecovbot commentedMay 23, 2023
edited
Loading

Codecov Report

Merging#7054 (ba8be5b) intomain (5166a00) willincrease coverage by0.02%.
The diff coverage is100.00%.

❗ Current headba8be5b differs from pull request most recent head8fdefa1. Consider uploading reports for the commit8fdefa1 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@##             main    #7054      +/-   ##==========================================+ Coverage   87.38%   87.41%   +0.02%==========================================  Files         386      386                Lines       13193    13216      +23       Branches     3867     3879      +12     ==========================================+ Hits        11529    11553      +24+ Misses       1298     1296       -2- Partials      366      367       +1
FlagCoverage Δ
unittest87.41% <100.00%> (+0.02%)⬆️

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

Impacted FilesCoverage Δ
...t-plugin/src/rules/class-literal-property-style.ts100.00% <100.00%> (ø)

... and7 files with indirect coverage changes

@MelandraMelandra marked this pull request as ready for reviewMay 23, 2023 18:52
messages:{
preferFieldStyle:'Literals should be exposed using readonly fields.',
preferFieldStyleSuggestion:
'Try replacing the literals with readonly fields.',
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I wasn't sure what messaging to use here, I'm open for other suggestions 🙂

Choose a reason for hiding this comment

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

Ah yeah these can be tricky. Searching around other rules that havehasSuggestions: true, we normally go with language like"Do X with Y". Here I think that'd be:

- 'Try replacing the literals with readonly fields.'+ 'Replace the literals with readonly fields.'

What do you think about that?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, that sounds good, I've updated both suggestion messages.

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.

🙌 The code looks great - love a clean swap like this one!

Just requesting changes to suggest a change to the text, as you brought up. Thoughts?

If you're happy with the suggestion or have one of your own then ✅ we can merge!

(sorry for the delay in reviewing - we've been focusing onv6...)

@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelJul 8, 2023
@Melandra
Copy link
ContributorAuthor

No worries 🙂
I've update the messages as you proposed.

@JoshuaKGoldbergJoshuaKGoldberg removed the awaiting responseIssues waiting for a reply from the OP or another party labelJul 9, 2023
JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesJul 9, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment
edited
Loading

Choose a reason for hiding this comment

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

🙌 Super, thanks@Melandra!

Yay balloon with confetti

@JoshuaKGoldbergJoshuaKGoldberg merged commita8c824a intotypescript-eslint:mainJul 9, 2023
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJul 17, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Bug: [class-literal-property-style] The overridden literal getter does not pass lint and incorrectly auto-fix

2 participants

@Melandra@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp