Skip to content

Implement a CI step to detect unused dependencies 📦  #413

@JamieSlome

Description

@JamieSlome

To ensure we don't unnecessarily hit "dependency bloat" nor merge pull requests with dependencies that are unused, we should introduce a GitHub Action or CI step to detect which dependencies are unused. This is a great first issue for someone looking to make their first contribution to the project 🎉

### Tasks
- [x] Detect unused dependencies and fail CI if more than 0
- [x] Detect unused `dependencies` and `devDependencies`
- [x] Only allow PR merges if the Action or CI step returns safely

I have previously come across depcheck - a nice lightweight NPM library that discovers unused dependencies.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions