📘 Invalid keys of "Issue Types"
Link
https://knip.dev/reference/issue-types
Description of the issue
- key for "Unused devDependencies" should be
devDependencies - key for "Referenced optional peerDependencies" should be
optionalPeerDependencies
Yes and no. You're technically correct, but from a user's perspective usually only dependencies is relevant:
- https://knip.dev/features/rules-and-filters
- https://knip.dev/reference/cli#--dependencies
The idea is that --dependencies is a shorthand flag and e.g. devDependencies are handled for you based on running production mode or not.
That said, it is indeed possible to configure e.g. exclude: ['optionalPeerDependencies'] although I think it's not so common.
Does that clear things up? Regardless, there's definitely room to improve the docs.
@webpro, oh, I see a point in the "Notes" section. Didn't notice it. Maybe, it'd be more clear, if we add footnotes to related items (e.g. "Unused devDependencies", "Referenced optional peerDependencies", "Unused exported types")?