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: writing TypeScript config file #2114

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rubiesonthesky
Copy link
Collaborator

PR Checklist

Overview

  • Fixes issue where null was inserted to typestat.json includes list
  • Fixes issue where option was inferableTypes when it should be noInferableTypes
  • Added basic testing for config generation

For future:

  • Config generation is still little bit broken. If I want to select just "Remove type annotations that don't change the meaning of code" option, the generated config file does not have it but instead has just "incompleteTypes": true. -> Needs new issue created.

🐙

) => {
return {
incompleteTypes: true,
...(improvements.has(InitializationImprovement.NoImplicitAny) && {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I kinda wish there was lint to disallow this pattern for adding properties to objects. I'm not sure what this is even called. It's really handy in some places but many times it just makes typing harder.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 85.03401% with 22 lines in your changes missing coverage. Please review.

Project coverage is 76.56%. Comparing base (881cd89) to head (d05243b).

Files with missing lines Patch % Lines
...initializeTypeScript/writeMultiTypeScriptConfig.ts 77.55% 11 Missing ⚠️
...nitializeTypeScript/writeSingleTypeScriptConfig.ts 54.16% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2114      +/-   ##
==========================================
+ Coverage   75.50%   76.56%   +1.06%     
==========================================
  Files         177      179       +2     
  Lines        7585     7660      +75     
  Branches     1077     1085       +8     
==========================================
+ Hits         5727     5865     +138     
+ Misses       1853     1790      -63     
  Partials        5        5              
Flag Coverage Δ
mutation 64.62% <0.00%> (-0.64%) ⬇️
unit 18.75% <85.03%> (+1.63%) ⬆️

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.

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: Writing Multi stage config results having null in include files array
1 participant