Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
feat: support Auto Accessor syntax#5926
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nx-cloudbot commentedNov 4, 2022 • 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.
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 onhttps://opencollective.com/typescript-eslint. |
netlifybot commentedNov 4, 2022 • 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 site settings. |
# Conflicts:#package.json#patches/typescript+4.8.3.patch#patches/typescript+4.9.2-rc.patch#patches/typescript+4.9.3.patch#yarn.lock
Clarifying ESTree naming consistency before we move forward on this -estree/estree#292 |
Looks like babel doesn't support type annotations on auto-accessors:babel/babel#15205 |
In3c326c4 I added tooling to the ast-spec fixture tester which allows us to add config for specific fixtures. For context, changes I have made to this PR:
This PR is waiting for a decision on naming alignment discussion with ESTree (estree/estree#292) |
codecovbot commentedNov 18, 2022 • 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
Additional details and impacted files@@ Coverage Diff @@## main #5926 +/- ##==========================================- Coverage 91.28% 91.24% -0.04%========================================== Files 366 366 Lines 12363 12380 +17 Branches 3617 3621 +4 ==========================================+ Hits 11285 11296 +11- Misses 768 774 +6 Partials 310 310
Flags with carried forward coverage won't be shown.Click here to find out more.
|
The AST is staying named as is, so no changes needed there. Just need to add scope analysis support then this will be good to go. |
# Conflicts:#.prettierignore
* The value should be a description of why there isn't support - for example a github issue URL. | ||
*/ | ||
readonly expectBabelToNotSupport?: string; | ||
} |
JoshuaKGoldbergNov 28, 2022 • 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.
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.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
const type = (() => { | ||
if (isAccessor) { | ||
if (isAbstract) { | ||
return AST_NODE_TYPES.TSAbstractAccessorProperty; |
JoshuaKGoldbergNov 28, 2022 • 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.
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.
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.
it might be because the tests are inast-spec
instead of in here?
maybe we need to adjust how the coverage is collected?
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.
Filed#6116 🤷
readonly // require keys for all nodes NOT defined in `eslint-visitor-keys` | ||
[T in Exclude< | ||
AST_NODE_TYPES, | ||
KeysDefinedInESLintVisitorKeysCore | ||
>]: readonly GetNodeTypeKeys<T>[]; | ||
} & { | ||
readonly // optionally allow keys for all nodes defined in `eslint-visitor-keys` | ||
[T in KeysDefinedInESLintVisitorKeysCore]?: readonly GetNodeTypeKeys<T>[]; |
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.
oooooof i didn't see that prettier formatted like this
disgusting.
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.
I played around with this a bunch locally and it works great. Additional 🌟 for the testing infrastructure cleanups. This was also a great excuse for me to get more familiar with#6065 😄
🚢 !
Thank you!! |
StanislavKharchenko commentedNov 28, 2022
Hello! |
PR Checklist
Overview
Based on#5716
SupportsAuto Accessors.
ref:ESTree definition