Repository navigation
chore: replace depcheck with knip - #321
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning MetaMask internal reviewing guidelines:
Ignoring alerts on:
|
d4714ba to
56de75e
Compare
56de75e to
bf0756e
Compare
1a34b72 to
7f1f9b3
Compare
7f1f9b3 to
ec62b00
Compare
59ecebe to
c9b2269
Compare
c9b2269 to
7eb1df9
Compare
7eb1df9 to
dfda8ed
Compare
dfda8ed to
b12b559
Compare
b12b559 to
f13b8ee
Compare
|
@SocketSecurity ignore npm/oxc-parser@0.156.0 All of these come in through knip, which we already use in other repos. oxc parser and oxc resolver are from the oxc project, and formatly runs a project's formatter, so the shell access is expected. The wasm binding and emnapi are optional fallbacks for wasm32 that don't get installed on macOS or Linux x64. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f13b8ee. Configure here.
| // `.github/scripts/remove-rca-needed-label-sheets.ts` runs. | ||
| '@actions/core', | ||
| '@actions/github', | ||
| ], |
There was a problem hiding this comment.
Type-aware lint package not ignored
Medium Severity
oxlint-tsgolint was dropped from the ignore list even though oxlint loads it through options.typeAware, not an import. Knip’s oxlint plugin does not trace that setting, so lint:dependencies can report a required lint backend as unused.
Reviewed by Cursor Bugbot for commit f13b8ee. Configure here.
f13b8ee to
8a93efc
Compare
1663658 to
3b3cd84
Compare
b64e71c to
19edd5b
Compare
19edd5b to
35dd380
Compare


Replaces depcheck with knip like core, keeping the same ignores for dependencies that are used outside of imports, and drops the unused swc cli dependency.
Note
Low Risk
Dev-only lint/tooling swap with no runtime or app logic changes.
Overview
Dependency linting moves from depcheck to knip:
lint:dependenciesnow runsknip --config knip.config.mts --dependencies(still followed byyarn dedupe), and.depcheckrc.jsonis removed in favor of newknip.config.mtswith entry/project globs forsrc, GitHub scripts/actions, and root config files, plusignoreDependenciesfor Lavamoat packages and GitHub Actions-only@actions/*deps (same intent as the old depcheck ignores).Tooling cleanup:
depcheckand unused@swc/cliare dropped from devDependencies;knipis added.knip.config.mtsis included intsconfig.jsonso it typechecks with the rest of the repo.Reviewed by Cursor Bugbot for commit 35dd380. Bugbot is set up for automated code reviews on this repo. Configure here.