chore: add Knip - #3346
Open
boneskull wants to merge 1 commit into
Open
Conversation
Member
Author
📚 Pull Request Stack
Managed by gh-stack |
|
boneskull
force-pushed
the
boneskull/knip
branch
from
August 15, 2026 00:45
21fceb0 to
590e2a6
Compare
boneskull
force-pushed
the
boneskull/knip
branch
from
August 15, 2026 00:45
590e2a6 to
d24fc8d
Compare
boneskull
force-pushed
the
boneskull/knip
branch
from
August 15, 2026 00:47
d24fc8d to
8bfb5b6
Compare
Member
Author
|
Example output from Knip follows. It shows unused files, unused dependencies/devdeps, unused exported types, unknown bins/scripts, and duplicate exports (aliases): Notes:
|
boneskull
force-pushed
the
boneskull/knip
branch
2 times, most recently
from
August 15, 2026 01:23
2a0615d to
b218fd3
Compare
This adds [Knip](https://knip.dev), which is essentially a linter for packages. It reports many different types of problems and is library-and-tool-aware. Enumerating its capabilities is beyond the scope of this description, however. I've configured Knip to run as a _non-failing_ step in our `lint` job. This will show all of the issues it detects. The major ones I'm seeing are unused exports and unused dependencies & dev dependencies. This should help us garden our honkin' monorepo.
boneskull
force-pushed
the
boneskull/knip
branch
from
August 15, 2026 01:37
b218fd3 to
4d89251
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds Knip, which is essentially a linter for packages. It reports many different types of problems and is library-and-tool-aware. Enumerating its capabilities is beyond the scope of this description, however.
I've configured Knip to run as a non-failing step in our
lintjob. This will show all of the issues it detects. The major ones I'm seeing are unused exports and unused dependencies & dev dependencies.Tip
Knip-surfaced issues can typically be suppressed inline via use of a
@knipignore(configurable) tag in a docstring.This should help us garden our honkin' monorepo.