Skip to content

chore: add common createParseConfigHost function#2056

Merged
rubiesonthesky merged 2 commits intoJoshuaKGoldberg:mainfrom
rubiesonthesky:createParseConfigHost
Dec 7, 2024
Merged

chore: add common createParseConfigHost function#2056
rubiesonthesky merged 2 commits intoJoshuaKGoldberg:mainfrom
rubiesonthesky:createParseConfigHost

Conversation

@rubiesonthesky
Copy link
Copy Markdown
Collaborator

PR Checklist

Overview

There is not a own task about this, because it was split out from another PR.

Adds common createParseConfigHost function to be used with ts.parseJsonConfigFileContent. minimatch is no longer needed, and thus it's been uninstalled.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.09%. Comparing base (73176a4) to head (db1e0b8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2056      +/-   ##
==========================================
+ Coverage   74.80%   75.09%   +0.29%     
==========================================
  Files         177      177              
  Lines        7590     7554      -36     
  Branches     1063     1058       -5     
==========================================
- Hits         5678     5673       -5     
+ Misses       1907     1876      -31     
  Partials        5        5              
Flag Coverage Δ
mutation 64.81% <100.00%> (+0.24%) ⬆️
unit 17.18% <14.28%> (+0.10%) ⬆️

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.

Comment thread src/services/createParseConfigHost.ts Outdated
getDirectories: ts.sys.getDirectories,
// eslint-disable-next-line @typescript-eslint/unbound-method
readDirectory: ts.sys.readDirectory,
// eslint-disable-next-line @typescript-eslint/unbound-method
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

At this point I'd say just disable it in the file 😄

Is there a tracking TS issue for correcting their typedefs? If not, up for filing one? This comes up once in a while...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixing this :D

Copy link
Copy Markdown
Owner

@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.

⚡ Love the reduction in dependencies & overall line count, nice!

Just requesting one dedup of ESLint inline config comments, otherwise no complaint from me.

@rubiesonthesky rubiesonthesky merged commit ae7d052 into JoshuaKGoldberg:main Dec 7, 2024
@rubiesonthesky rubiesonthesky deleted the createParseConfigHost branch December 7, 2024 18:11
@github-actions
Copy link
Copy Markdown

🎉 This is included in version v0.8.5 🎉

The release is available on:

Cheers! 📦🚀

@rubiesonthesky
Copy link
Copy Markdown
Collaborator Author

This actually fixed #1522

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.

2 participants