-
Notifications
You must be signed in to change notification settings - Fork 28
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
MTV-1988: Add knip #1498
base: main
Are you sure you want to change the base?
MTV-1988: Add knip #1498
Conversation
Signed-off-by: Joachim Schuler <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1498 +/- ##
==========================================
- Coverage 36.81% 36.31% -0.50%
==========================================
Files 158 157 -1
Lines 2548 2569 +21
Branches 599 613 +14
==========================================
- Hits 938 933 -5
- Misses 1428 1449 +21
- Partials 182 187 +5 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Joachim Schuler <[email protected]>
@@ -0,0 +1,29 @@ | |||
{ | |||
"$schema": "https://json.schemastore.org/tsconfig", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never used $schema in my configs. Do we really need it?
Also, do we need all the other settings? please go over the list and see if we can omit uneeded settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can check the settings, maybe in a separate issue. I needed a root tsconfig to make knip happy so took all the common config items and extracted out
From the results here, it seems like knip needs its config file with entry points; as this is a plugin with no single point of entry, like index.js, main.js, or such, we should add a config file with entries to tell knip from where to scan. |
|
I updated the settings. It was previously not picking up all the dynamic module entries so I had to add them |
Signed-off-by: Joachim Schuler <[email protected]>
Signed-off-by: Joachim Schuler <[email protected]>
|
📝 Links
https://issues.redhat.com/browse/MTV-1988
📝 Description
Adds the base knip config.
Followup PRs will start to address the reported issues.
🎥 Demo
📝 Followup PRs
Remove unused files
Remove unused export types