add option to include special files in the check for unused dependencies #223
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Example:
depcheck
supports the concept ofspecials
which are special parsers to check files other than your usual JavaScript source code. (See https://github.com/depcheck/depcheck#special.)Current support includes npm scripts, eslint, webpack, babel and mocha. (See https://github.com/depcheck/depcheck/tree/master/src/special for the full list.)
This PR adds
specials
to the API and CLI and passes the value through todepcheck
when checking for unused dependencies.I've opened a PR in
depcheck
- depcheck/depcheck#206 - to make the list of available options clearer in the documentation.