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): [explicit-member-accessibility] refine report locations#8869

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

kirkwaiblinger
Copy link
Member

@kirkwaiblingerkirkwaiblinger commentedApr 7, 2024
edited
Loading

PR Checklist

cc@developer-bandi

Overview

This PR makes it so that formissing accessibility modifiers, we report just the symbol name preceeded by however many keywords (get,abstract, etc)

classA{// before   @foo^^^^getx():string{^^^^^^^^^^^^^^^^^^^^}^^^^// after   @foogetx():string{^^^^^}}

and forpublic modifiers that shouldnot be present, weonly flag on thepublic keyword itself

classA{// beforepublicabstractmethod(x:string):number;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^// afterpublicabstractmethod(x:string):number;^^^^^^}

developer-bandi reacted with thumbs up emoji
@typescript-eslint
Copy link
Contributor

Thanks for the PR,@kirkwaiblinger!

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 commentedApr 7, 2024
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit602de2a
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/66346bc010dc4e0008d40e11
😎 Deploy Previewhttps://deploy-preview-8869--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: 97 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (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 commentedApr 7, 2024
edited
Loading

☁️ Nx Cloud Report

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

Sent with 💌 fromNxCloud.

@kirkwaiblingerkirkwaiblinger marked this pull request as ready for reviewApril 7, 2024 01:57
suggestions: [
{
messageId: 'addExplicitAccessibility',
data: { type: 'public' },
output: `
class Test {
public constructor(public...x: any[]) {}
public constructor(public x: any[]) {}
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

changed this since it's illegal syntax for a parameter property to be a rest element. Though the rule doesn't really care.

Copy link
MemberAuthor

@kirkwaiblingerkirkwaiblingerApr 7, 2024
edited
Loading

Choose a reason for hiding this comment

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

i audited everyinvalid test case and put in the exact report range, since it wasvery helpful for development to do so. I realize, however, that that may be overkill for testing (and can make modifications to the rule or test cases unnecessarily unwieldy). If requested, I can remove some of the added report locations. But IMO they might as well stay now that they're there

Copy link
Member

Choose a reason for hiding this comment

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

Eventually we'll have#6994 and we can kill all of the line/col assertions.

kirkwaiblinger reacted with heart emoji
@Josh-Cena
Copy link
Member

@kirkwaiblinger If you don't want to auto-close that issue, you have to make sure your description doesn't contain the substring "fixes #xxx". You can say "fixes (partially) #xxx" (I usually do that)

kirkwaiblinger reacted with thumbs up emoji

@kirkwaiblinger
Copy link
MemberAuthor

Confused by the CI failure, looking for advice on how to resolve it

@kirkwaiblingerkirkwaiblinger added the enhancementNew feature or request labelMay 4, 2024
@bradzacherbradzacher added bugSomething isn't working and removed enhancementNew feature or request labelsMay 28, 2024
Copy link
Member

@bradzacherbradzacher left a comment

Choose a reason for hiding this comment

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

kirkwaiblinger reacted with laugh emoji
@bradzacherbradzacher merged commitc9a8386 intotypescript-eslint:mainMay 28, 2024
59 of 60 checks passed
@kirkwaiblingerkirkwaiblinger deleted the explicit-member-accessibility-report-loc branchMay 28, 2024 05:28
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJun 10, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@bradzacherbradzacherbradzacher approved these changes

Assignees
No one assigned
Labels
bugSomething isn't working
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@kirkwaiblinger@Josh-Cena@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp