๐ก Flag unused ignore/ignoreDependencies rules
bigpopakap opened this issue ยท 1 comments
bigpopakap commented
Suggest an idea for this project
I have configured ignoreDependencies
and ignore
in my project:
- I have some
ignore
rules to quiet issues that will be solved soon (eg. for a util file that is currently unused, but will be used imminently) - I have some
ignoreDependencies
rules for other issues (eg. I ignore"@next/eslint-plugin-next"
and"eslint-config-next"
because of #818)
When these issues are resolved (I use that util function again, or #818 is solved), I'd like to be notified by Knip that my ignore
/ignoreDependencies
configurations are no longer necessary.
Knip could detect if/when ignoreDependencies: ["@next/eslint-plugin-next"]
or ignore: ["lib/myUtil.ts"]
don't actually suppress anything, and report this as a warning or error (probably configurable - not everyone will want this).
webpro commented
For ignoreDependencies
this already works.
The configuration hints are warnings, not errors indeed.