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(typescript-estree): forbid abstract method and accessor to have implementation#11657

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

fisker
Copy link
Contributor

@fiskerfisker commentedSep 28, 2025
edited by JoshuaKGoldberg
Loading

PR Checklist

Overview

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@fisker!

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 commentedSep 28, 2025
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitc30d11d
🔍 Latest deploy loghttps://app.netlify.com/projects/typescript-eslint/deploys/68dac51c1c7f4d000885cb4c
😎 Deploy Previewhttps://deploy-preview-11657--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: 89 (🟢 up 6 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (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 project configuration.

@nx-cloudNx Cloud
Copy link

nx-cloudbot commentedSep 28, 2025
edited
Loading

View yourCI Pipeline Execution ↗ for commitc30d11d

CommandStatusDurationResult
nx run-many -t typecheck✅ Succeeded2mView ↗
nx run-many -t lint✅ Succeeded3m 15sView ↗
nx run types:build✅ Succeeded5sView ↗
nx test typescript-estree --coverage=false✅ Succeeded2sView ↗
nx run integration-tests:test✅ Succeeded5sView ↗
nx test eslint-plugin --coverage=false✅ Succeeded3sView ↗
nx test eslint-plugin-internal --coverage=false✅ Succeeded3sView ↗
nx run generate-configs✅ Succeeded6sView ↗
Additional runs (27)✅ Succeeded...View ↗

☁️Nx Cloud last updated this comment at2025-09-29 17:49:21 UTC

@codecovCodecov
Copy link

codecovbot commentedSep 29, 2025
edited
Loading

Codecov Report

❌ Patch coverage is5.55556% with17 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.90%. Comparing base (967764e) to head (c30d11d).
⚠️ Report is 33 commits behind head on main.

Files with missing linesPatch %Lines
packages/typescript-estree/src/convert.ts0.00%11 Missing⚠️
packages/typescript-estree/src/node-utils.ts14.28%6 Missing⚠️

❌ Your patch status has failed because the patch coverage (5.55%) is below the target coverage (90.00%). You can increase the patch coverage or adjust thetarget coverage.

Additional details and impacted files
@@            Coverage Diff             @@##             main   #11657      +/-   ##==========================================- Coverage   90.93%   90.90%   -0.03%==========================================  Files         506      506                Lines       51400    51414      +14       Branches     8484     8483       -1     ==========================================- Hits        46741    46739       -2- Misses       4646     4662      +16  Partials       13       13
FlagCoverage Δ
unittest90.90% <5.55%> (-0.03%)⬇️

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

Files with missing linesCoverage Δ
packages/typescript-estree/src/node-utils.ts62.50% <14.28%> (-0.55%)⬇️
packages/typescript-estree/src/convert.ts30.16% <0.00%> (-0.07%)⬇️

... and1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fiskerfisker changed the titlefix(typescript-estree): forbid abstract method to have implementationfix(typescript-estree): forbid abstract method and accessor to have implementationSep 29, 2025
@fiskerfisker marked this pull request as draftSeptember 29, 2025 16:56
@fiskerfisker marked this pull request as ready for reviewSeptember 29, 2025 17:42
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.

Fantastic - very clean and thorough. Nice!

Just requesting the one(Missing) case be tested or removed. Otherwise this looks ready to go to me.

Choose a reason for hiding this comment

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

[Praise] Nice, always happy to see this file cleaned up.

ast:ts.SourceFile,
):string{
consttext=ast.text.slice(name.pos,name.end).trimStart();
returntext||'(Missing)';

Choose a reason for hiding this comment

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

'(Missing)'

[Testing] This doesn't show up in any of the snapshots. Can you either add a test showing it (if it's possible?) or remove it?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

This originaldeclarationNameToString from typescript package have this, so I guess it's possible, but I don't know how to test.

Choose a reason for hiding this comment

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

👍 makes sense, I think it's reasonable to leave in then. Thanks.

node.kind===SyntaxKind.GetAccessor||
node.kind===SyntaxKind.SetAccessor
?'An abstract accessor cannot have an implementation.'
:`Method '${declarationNameToString(node.name,this.ast)}' cannot have an implementation because it is marked abstract.`,

Choose a reason for hiding this comment

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

[Praise] These are great error messages! 👏

@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelOct 3, 2025
@JoshuaKGoldbergJoshuaKGoldberg merged commit02e0278 intotypescript-eslint:mainOct 6, 2025
64 of 66 checks passed
@fiskerfisker deleted the class-abstract-method branchOctober 6, 2025 14:10
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg requested changes

Assignees
No one assigned
Labels
awaiting responseIssues waiting for a reply from the OP or another party
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Enhancement: Forbid abstract accessor to have implementation Enhancement: Forbid abstract method to have implementation
2 participants
@fisker@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp