Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 4, 2024
1 parent 69c021b commit 0749921
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
8 changes: 4 additions & 4 deletions packages/docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ hero:
link: ./overview/getting-started
icon: right-arrow
variant: primary
# - text: 'NEW! Two Years'
# link: /blog/two-years
# icon: star
# variant: secondary
- text: 'NEW! Two Years'
link: /blog/two-years
icon: star
variant: secondary
- text: View on GitHub
link: https://github.com/webpro-nl/knip
icon: external
Expand Down
16 changes: 11 additions & 5 deletions packages/docs/src/content/docs/reference/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,7 @@ Also see [production mode][7].

### Why doesn't Knip have...?

Features that have been requested and could be implemented or opened up to
extend Knip include:
Examples of features that have been requested include:

- Expose programmatic API
- Add local/custom plugins
Expand All @@ -336,9 +335,16 @@ extend Knip include:
- Unused object members (and e.g. React component props)
- Unused object props in function return values
- Analyze workspaces in parallel

These are all interesting ideas, but do increase the API surface area. This
would mean more development efforts and maintenance. Time is limited and
- Plugins for editors like VS Code and WebStorm (LSP-based?)
- Support Deno
- Improve internal code structures and accessibility to support contributions
- One-shot dead code removal (more comprehensive removal of unused variables,
duplicate exports, dead code, etc).
- Replace dependencies for better performance and correctness, such as for shell
script parsing, module resolution and globbing with "unignores".

These are all interesting ideas, but most increase the API surface area, and all
require more development efforts and maintenance. Time is limited and
[sponsorships][8] currently don't cover - this can change though!

[1]: ../guides/handling-issues.mdx#external-libraries
Expand Down

0 comments on commit 0749921

Please sign in to comment.