Skip to content

Issue Types

Knip reports the following types of issues:

TitleDescriptionKey
Unused filesUnable to find a reference to this fileπŸ”§files
Unused dependenciesUnable to find a reference to this dependencyπŸ”§dependencies
Unused devDependenciesUnable to find a reference to this devDependencyπŸ”§dependencies
Referenced optional peerDependenciesOptional peer dependency is referenceddependencies
Unlisted dependenciesUsed dependencies not listed in package.jsonunlisted
Unlisted binariesBinaries from dependencies not listed in package.jsonbinaries
Unresolved importsUnable to resolve this (import) specifierunresolved
Unused exportsUnable to find a reference to this exportπŸ”§exports
Unused exported typesUnable to find a reference to this exported typeπŸ”§types
Exports in used namespaceNamespace with export is referenced, but not export itselfπŸ”§ 🟠nsExports
Exported types in used namespaceNamespace with type is referenced, but not type itselfπŸ”§ 🟠nsTypes
Unused exported enum membersUnable to find a reference to this enum memberπŸ”§enumMembers
Unused exported class membersUnable to find a reference to this class memberπŸ”§ 🟠classMembers
Duplicate exportsThis is exported more than onceduplicates
Description
πŸ”§Auto-fixable issue types
🟠Not included by default (include with filters)
  • When an issue type has zero issues, it is not shown.
  • The devDependencies and optionalPeerDependencies are covered in a single key for all dependencies. In strict production mode, devDependencies are not included.
  • The types issue type includes enum, interface and type exports.

ISC License Β© 2024 Lars Kappert