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: fixes reading tsconfig and handling compilerOptions #1542

Conversation

rubiesonthesky
Copy link
Collaborator

@rubiesonthesky rubiesonthesky commented Apr 7, 2024

PR Checklist

Overview

  • Fixes reading tsconfig and handling the values.
    • This can be seen in the snapshot files, where values for compilerOptions have been changed.
  • Options from typestat.json should not disable noImplicitAny or noImplicitThis if they are enabled in tsconfig.

@rubiesonthesky rubiesonthesky changed the title Fix reading tsconfig and collecting filenames fix: fixes reading tsconfig and handling compilerOptions Apr 7, 2024
@rubiesonthesky rubiesonthesky marked this pull request as ready for review April 7, 2024 17:31
@rubiesonthesky rubiesonthesky added the status: blocked Waiting for something else to be resolved 🙅 label May 5, 2024
@rubiesonthesky rubiesonthesky removed the status: blocked Waiting for something else to be resolved 🙅 label Nov 29, 2024
@rubiesonthesky
Copy link
Collaborator Author

I guess I should update this PR now :D

@JoshuaKGoldberg
Copy link
Owner

😅 yeah that'd be great. But if you don't have the time and don't want to deal with merge conflicts from me skipping out for a half a year, no worries - lmk and I can step in! ❤️

@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for author Needs an action taken by the original poster label Dec 1, 2024
@rubiesonthesky rubiesonthesky marked this pull request as draft December 6, 2024 20:34
@rubiesonthesky rubiesonthesky force-pushed the fix-reading-tsconfig-and-collecting-filenames branch from 6a2c6ef to d13b85d Compare February 1, 2025 18:48
Copy link

codecov bot commented Feb 1, 2025

Codecov Report

Attention: Patch coverage is 87.09677% with 4 lines in your changes missing coverage. Please review.

Project coverage is 74.75%. Comparing base (a505078) to head (d13b85d).
Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
src/options/loadPendingOptions.ts 0.00% 2 Missing ⚠️
src/options/parseRawCompilerOptions.ts 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1542      +/-   ##
==========================================
- Coverage   74.81%   74.75%   -0.07%     
==========================================
  Files         171      171              
  Lines        7108     7078      -30     
  Branches     1049     1039      -10     
==========================================
- Hits         5318     5291      -27     
+ Misses       1785     1781       -4     
- Partials        5        6       +1     
Flag Coverage Δ
mutation 69.55% <87.09%> (-0.09%) ⬇️
unit 12.57% <3.22%> (+0.03%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rubiesonthesky rubiesonthesky marked this pull request as ready for review February 1, 2025 18:58
@rubiesonthesky rubiesonthesky removed the status: waiting for author Needs an action taken by the original poster label Feb 1, 2025
@rubiesonthesky
Copy link
Collaborator Author

@JoshuaKGoldberg This is now ready for review. Sorry that it took so long!

From test snapshots you can see that the compiler options looks much better now. There is no longer 2 nested compilerOptions. :) A lot type errors are also gone from integration tests, since now it's handling those options better.

@rubiesonthesky
Copy link
Collaborator Author

rubiesonthesky commented Feb 3, 2025

I need to revisit this again. I’m having hard time understanding why different change fixed another bug. But when putting together with this change with this change the bug appeared again.

@rubiesonthesky rubiesonthesky marked this pull request as draft February 3, 2025 13:55
@rubiesonthesky
Copy link
Collaborator Author

Not needed anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug: suppressTypeErrors: program's compilerOptions are malformed
2 participants