Skip to content

Change Request: Add Knip to detect unused dependencies and exports #695

@Pixel998

Description

@Pixel998

Which packages would you like to change?

  • espree
  • eslint-scope
  • eslint-visitor-keys

What problem do you want to solve?

Unused dependencies, exports, and files can accumulate, adding unnecessary bloat and maintenance overhead. For example, in PR #690, many unused dependencies were removed manually, which could have been detected automatically.

What do you think is the correct solution?

Add Knip to the repo to automatically find unused dependencies, exports, and files. This would reduce manual cleanup, catch issues earlier, and keep the codebase lean, similar to its use in the eslint/eslint repo.

Participation

  • I am willing to submit a pull request for this change.

Additional comments

If the team agrees, I’d like to apply this to the other repos as well.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions