Knip
Knip is a tool for linting unused dependencies, exports, and files.
Installation
Use Knip's own initialiser package:
bash
npm init @knip/config
# Or
pnpm create @knip/config
This will create a knip
script in your package.json.
Use this, or run the knip
binary to use Knip:
bash
npm run knip
# Or
pnpm knip
# Or
npx knip
# Or
pnpx knip