Skip to content
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

fix(scope-manager): visit static blocks #5489

Merged

Conversation

DMartens
Copy link
Contributor

PR Checklist

Overview

Only added the visitor for static blocks for classes as the scope was already present.

@nx-cloud
Copy link

nx-cloud bot commented Aug 16, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 6c98e88. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 47 targets

Sent with 💌 from NxCloud.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @DMartens!

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.

@netlify
Copy link

netlify bot commented Aug 16, 2022

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 6c98e88
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/62fb76a0bb98070009593081
😎 Deploy Preview https://deploy-preview-5489--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Aug 16, 2022

Codecov Report

Merging #5489 (6c98e88) into main (830b946) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #5489      +/-   ##
==========================================
- Coverage   91.74%   91.61%   -0.13%     
==========================================
  Files         366      347      -19     
  Lines       12344    10929    -1415     
  Branches     3601     3220     -381     
==========================================
- Hits        11325    10013    -1312     
+ Misses        668      592      -76     
+ Partials      351      324      -27     
Flag Coverage Δ
unittest 91.61% <100.00%> (-0.13%) ⬇️

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

Impacted Files Coverage Δ
...s/scope-manager/src/scope/ClassStaticBlockScope.ts 100.00% <ø> (+25.00%) ⬆️
...kages/scope-manager/src/referencer/ClassVisitor.ts 94.11% <100.00%> (+0.10%) ⬆️
packages/typescript-estree/src/ts-estree/index.ts
...ges/typescript-estree/src/create-program/shared.ts
...-estree/src/create-program/createDefaultProgram.ts
packages/typescript-estree/src/simple-traverse.ts
...ript-estree/src/create-program/createSourceFile.ts
...-estree/src/create-program/createProjectProgram.ts
packages/typescript-estree/src/convert-comments.ts
packages/visitor-keys/src/get-keys.ts
... and 13 more

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

LGTM!

I'm still pretty new to this area so we should let another maintainer approve. But this seems pretty straightforward 😄

@JoshuaKGoldberg JoshuaKGoldberg added the 1 approval PR that a maintainer has LGTM'd - any maintainer can merge this when ready label Aug 16, 2022
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

oops - looks like this was supposed to be actioned in #4211 but the visitor wasn't added.

thanks for thsi!

@bradzacher bradzacher changed the title feat(scope-manager): visit static blocks fix(scope-manager): visit static blocks Aug 17, 2022
@bradzacher bradzacher added the bug Something isn't working label Aug 17, 2022
@bradzacher bradzacher merged commit 78745c2 into typescript-eslint:main Aug 17, 2022
@DMartens DMartens deleted the scope-manager-static-block branch August 17, 2022 09:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 approval PR that a maintainer has LGTM'd - any maintainer can merge this when ready bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: [scope-manager] Static Blocks do not introduce a scope
3 participants