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

Add Knip #560

Merged
merged 19 commits into from
Dec 11, 2024
Merged

Add Knip #560

merged 19 commits into from
Dec 11, 2024

Conversation

manuelblum
Copy link
Contributor

@manuelblum manuelblum commented Nov 25, 2024

Add Knip to lint pipelines. Knip can support in linting dead source code, unused files, unused dependencies, and unnecessary exports.

@manuelblum manuelblum changed the title Add knip WIP: Add knip Nov 25, 2024
@manuelblum manuelblum changed the title WIP: Add knip Draft: Add knip Nov 25, 2024
@manuelblum
Copy link
Contributor Author

i would like to discuss this tomorrow

@manuelblum manuelblum marked this pull request as ready for review November 26, 2024 12:38
Copy link
Contributor

@fraxachun fraxachun left a comment

Choose a reason for hiding this comment

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

A much as i dislike having tons of packages for utils which other languages support out of the box, knip makes sense to me.

site/src/util/SiteConfigProvider.tsx Show resolved Hide resolved
api/knip.json Show resolved Hide resolved
admin/knip.json Show resolved Hide resolved
admin/src/config.tsx Show resolved Hide resolved
fraxachun
fraxachun previously approved these changes Dec 2, 2024
admin/project-words.txt Outdated Show resolved Hide resolved
@nsams nsams removed their request for review December 2, 2024 16:46
johnnyomair added a commit to vivid-planet/comet that referenced this pull request Dec 9, 2024
#2848)

While integrating [Knip in the Starter](vivid-planet/comet-starter#560) we've noticed that the API Generator generates an update input for the single generator which isn't used. This is fixed by adding a `generateUpdateInput` option which is set `false` for the single generator.
@johnnyomair johnnyomair changed the title Add knip Add Knip Dec 10, 2024
Copy link
Collaborator

@johnnyomair johnnyomair left a comment

Choose a reason for hiding this comment

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

LGTM. We still need to wait for the next stable Comet release though.

api/src/util/mediaAspectRatios.ts Outdated Show resolved Hide resolved
api/knip.json Outdated Show resolved Hide resolved
project-words.txt Outdated Show resolved Hide resolved
@manuelblum manuelblum merged commit 0c7fbc6 into main Dec 11, 2024
3 checks passed
@manuelblum manuelblum deleted the chore/add-knip branch December 11, 2024 07:43
johnnyomair added a commit that referenced this pull request Dec 11, 2024
We incorrectly removed `@comet/cli` from the API in #560. The package is used for the site configs type.
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.

5 participants