Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More examples (invocation, flags, and configs?) #651

Closed
tony opened this issue Jun 8, 2021 · 2 comments
Closed

More examples (invocation, flags, and configs?) #651

tony opened this issue Jun 8, 2021 · 2 comments

Comments

@tony
Copy link

tony commented Jun 8, 2021

Hi, thank you for the project! This seems very valuable! I have a project that likely has many unused dependencies, but I'm not sure how to set up depcheck.

My project is a larger project using babel, typescript, webpack (with typescript webpack config), sass, eslint, etc.

When searching, I have had a difficult time finding examples. StackOverflow, Medium, GitHub Issues, documentataion here itself - I see no examples of using depcheck on a large project.

Feature request description

Provide examples of and make easily available:

  • CLI Invocation
    • one or multiple --parsers
    • one or multiple --specials
    • one or multiple --detectors
  • should webpack/babel/typescript/eslint point to babel, eslint, webpack config files? If so, what does it look like in CLI, in config file?
  • Example of pointing to a dep check config (e.g. is their a .depcheck.js autodetected, or is --config always required?)
    • can configs be in typescript?
  • Example of integration with CI (e.g. GitHub actions?)

Code snippets (if applicable)

I'm trying an example

npx depcheck --specials typescript,webpack,babel,prettier,eslint --parsers='.tsx:typescript' --parsers='.ts:typescript' ./

Output:

(value || "").split is not a function

I've googled for examples and can't find anything. I've found #246
and it's closed.

Any extra info

I think that people would benefit from seeing more examples of how to put depcheck into action, it's a mystery to me still! 😄

@tony tony added the feature label Jun 8, 2021
@tklltkioc
Copy link

I also think so.I need more examples, such as invocation, flags and configs.

@stale
Copy link

stale bot commented Dec 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 9, 2021
@stale stale bot closed this as completed Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@tony @tklltkioc and others