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

feat(ci): Add knip, remove depcheck #140

Merged
merged 4 commits into from
Nov 2, 2023
Merged

feat(ci): Add knip, remove depcheck #140

merged 4 commits into from
Nov 2, 2023

Conversation

jophish
Copy link
Contributor

@jophish jophish commented Nov 2, 2023

Adds a (kind of lame) initial configuration for knip, which replaces depcheck. By default, this will report on a lot of useful stuff, so may require further tuning/configuration as we learn how to use it preoperly.

(While getting this PR ready, knip actually complained to me after I yarn remove'd depcheck but before I updated the GH workflow to use knip instead of depcheck. It was able to detect that without depcheck installed, there was no such binary named depcheck available in the package, which we were still referencing in the GH workflow -- kind of wild!!)

Copy link
Member

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

Amazing! Love this ❤️ 🏅
I was really looking forward to catching more unused stuff automatically.

Copy link
Contributor

@cajubelt cajubelt left a comment

Choose a reason for hiding this comment

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

looking forward to trying it out

@jophish jophish merged commit bc22e99 into main Nov 2, 2023
1 check passed
@jophish jophish deleted the jophish/knip branch November 2, 2023 17:40
@@ -0,0 +1,5 @@
{
"entry": ["src/index.ts"],
"project": ["src/**/*/.ts"],
Copy link
Contributor

Choose a reason for hiding this comment

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

should this include scripts/?

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.

4 participants