Skip to content

fix(typescript-estree): disable includePackageJsonAutoImports in ProjectService #9586

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

Merged
merged 5 commits into from
Jul 21, 2024

Conversation

jakebailey
Copy link
Collaborator

@jakebailey jakebailey commented Jul 18, 2024

PR Checklist

Overview

Per microsoft/TypeScript#59338 (comment), disable this so that the auto import projects are not used.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @jakebailey!

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.

Copy link

netlify bot commented Jul 18, 2024

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 3b896fb
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/669993c1de7b100008d58018
😎 Deploy Preview https://deploy-preview-9586--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: 97 (🟢 up 3 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (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 your Netlify site configuration.

Copy link

nx-cloud bot commented Jul 18, 2024

☁️ Nx Cloud Report

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

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@jakebailey
Copy link
Collaborator Author

The heck

Copy link

codecov bot commented Jul 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.40%. Comparing base (90bacee) to head (3b896fb).
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9586      +/-   ##
==========================================
+ Coverage   88.38%   88.40%   +0.01%     
==========================================
  Files         419      422       +3     
  Lines       14620    14651      +31     
  Branches     4279     4285       +6     
==========================================
+ Hits        12922    12952      +30     
  Misses       1374     1374              
- Partials      324      325       +1     
Flag Coverage Δ
unittest 88.40% <100.00%> (+0.01%) ⬆️

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

Files Coverage Δ
...-estree/src/create-program/createProjectService.ts 77.77% <100.00%> (+0.85%) ⬆️

... and 5 files with indirect coverage changes

@bradzacher
Copy link
Member

auto import projects

What are those..? Will that cause us to lose any type coverage?

@JoshuaKGoldberg
Copy link
Member

@bradzacher this is our side of microsoft/TypeScript#59338 (comment). There's more work to be done, but this should be a good improvement to start.

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.

Thanks (as usual) for hopping on this @jakebailey + @sheetalkamat! ❤️

@JoshuaKGoldberg JoshuaKGoldberg added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Jul 20, 2024
@jakebailey
Copy link
Collaborator Author

What are those..? Will that cause us to lose any type coverage?

TS needs a way to analyze code for auto imports, but it can't do that in the main Program for the current code because that would end up loading stuff like potentially unreferenced ambients. So, it instead loads those other libraries in a AutoImportProviderProject separately so they can be analyzed and provide completions / fixes. There's no need for that in your case, so it's just wasted work.

@bradzacher
Copy link
Member

this is our side of microsoft/TypeScript#59338 (comment).

The issue doesn't say what they are!
What are auto import projects..?
Will turning them off cause us to lose any type coverage?

@jakebailey
Copy link
Collaborator Author

Did you see my explanation above? This will have no effect on your usage at all.

@bradzacher
Copy link
Member

I didn't see it cos the GH mobile app is so bad at doing anything useful 😅

Makes sense! Kill it!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 863eb86 into typescript-eslint:main Jul 21, 2024
65 of 66 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2024
@jakebailey jakebailey deleted the for-9571-1 branch August 19, 2024 18:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants