javascript/knip
Finds files, exports, and dependencies nothing uses.
Part of the javascript configuration, at the recommended level. It runs at the push stage, once per scope. It runs knip.
Teams read, maintain, and ship dead code for nobody.
What to do
Section titled “What to do”Delete what knip names. For a file loaded in a way that knip cannot trace, add an entry point in tools.knip.entry.
Example
Section titled “Example”An export that no entry point uses reports a finding. Remove it, or list a dynamically loaded file in tools.knip.entry.
Turn it off
Section titled “Turn it off”Turn it off for some files, or one of its lint rules, with a reason:
gspot ignore javascript/knip --paths "<glob>" --reason "<why>"gspot ignore javascript/knip --rule <rule> --reason "<why>"