Skip to content

Related Tooling

This is an overview of related tooling for features Knip does not support.

Unused variables

Knip doesn’t look for unused variables within a file. It looks for exported and imported values and types across files.

Use ESLint, Biome or oxc to find unused variables within files.

Use remove-unused-vars to remove unused variables within files. This pairs great with Knip.

Unused properties

Knip does not yet support finding unused members of types, interfaces and objects. This includes returned objects from exported functions and objects passed as React component props.

Knip does support finding unused members of enums and classes, and exported values and types on imported namespaces.

Circular dependencies

Knip has no issues with circular dependencies, and does not report them. Tools that do support this include DPDM, Madge and skott.

ISC License © 2024 Lars Kappert