Skip to content

Conversation

@jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Feb 5, 2025

This PR adds the Knip npm package as a way to check for unused files, dependencies, etc. Another step towards tidying up our codebase.

CleanShot 2025-02-05 at 13 28 57

I also ran npx vue-unused-components-checker.

It turns out we had some Sortable components in there that weren't being used. They were being imported and added to components, but not actually used in templates. Knip didn't pick those up because the imports were being used in the JS.

It was added in the Vue 3 upgrade because I copied the package.json from the original Vue 3 PR. They originally used it when they migrated Popover.vue to composition API but that never needed to happen on the final PR.
This was only working because something else required it.
If we use a package directly, we should require it.
…sed. Yes they were imported, but still not used.
@jasonvarga jasonvarga changed the title [6.x] Knip [6.x] Add Knip and perform some clean up Feb 6, 2025
@jasonvarga jasonvarga marked this pull request as ready for review February 6, 2025 20:46
@jasonvarga jasonvarga merged commit 99a121f into master Feb 6, 2025
20 checks passed
@jasonvarga jasonvarga deleted the knip branch February 6, 2025 20:46
jasonvarga added a commit that referenced this pull request Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants