-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(typescript-estree): support private fields in-in syntax #4075
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(typescript-estree): support private fields in-in syntax #4075
Conversation
Thanks for the PR, @sosukesuzuki! 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 on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
I'll fix type errors at tomorrow. |
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.
just type changes - sweet!
@@ -1,8 +1,9 @@ | |||
import type { PrivateIdentifier } from '../special/PrivateIdentifier/spec'; | |||
import type { Expression } from '../unions/Expression'; | |||
import type { BaseNode } from './BaseNode'; | |||
|
|||
export interface BinaryExpressionBase extends BaseNode { |
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.
at this point we could probably just delete this interface entirely. Each node that extends this already declares its own operator
, and with one node now declaring its own left
- it's kind of no longer a "shared common base".
b5ed659
to
dac4bab
Compare
✔️ Deploy Preview for typescript-eslint ready! 🔨 Explore the source changes: 9161279 🔍 Inspect the deploy log: https://app.netlify.com/sites/typescript-eslint/deploys/618de78eca110d00082701d2 😎 Browse the preview: https://deploy-preview-4075--typescript-eslint.netlify.app |
Codecov Report
@@ Coverage Diff @@
## master #4075 +/- ##
==========================================
- Coverage 93.35% 93.08% -0.27%
==========================================
Files 152 295 +143
Lines 8035 11095 +3060
Branches 2579 3232 +653
==========================================
+ Hits 7501 10328 +2827
- Misses 180 299 +119
- Partials 354 468 +114
Flags with carried forward coverage won't be shown. Click here to find out more.
|
dac4bab
to
9161279
Compare
@bradzacher Thank you for the review! I've updated! |
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.
awesome! thanks for this!
PR Checklist
Overview
Adds support for
#bar in foo
syntax.(updating types and adding tests)Based on #4073