Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
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
fix(typescript-estree): forbid abstract method and accessor to have implementation#11657
Conversation
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. |
netlifybot commentedSep 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview fortypescript-eslint ready!
To edit notification comments on pull requests, go to yourNetlify project configuration. |
nx-cloudbot commentedSep 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
View yourCI Pipeline Execution ↗ for commitc30d11d
☁️Nx Cloud last updated this comment at |
fcd0b87
to4230204
Comparecodecovbot commentedSep 29, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report❌ Patch coverage is
❌ 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
Flags with carried forward coverage won't be shown.Click here to find out more.
🚀 New features to boost your workflow:
|
2d59c8f
to1d5e23c
Comparee6587ff
toc30d11d
CompareThere was a problem hiding this 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.
There was a problem hiding this comment.
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)'; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.`, |
There was a problem hiding this comment.
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! 👏
02e0278
intotypescript-eslint:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
PR Checklist
Overview