Skip to content

💡 Allow converting "configuration hints" into errors #891

@lishaduck

Description

@lishaduck

Suggest an idea for Knip

When a package is in ignoreDependencies but then gets used, Knip gives off a configuration hint. They're useful, but only if you notice them. I primarily run checks in CI, so if it doesn't error, I don't see it. I'd love to convert these issues into errors, forcing me to remove them so that the config stays clean and up-to-date.
Given that hints exist, all of the logic is probably there; this'll probably just need to wired up to however you manage exit codes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions