daidodo / daidodo/format-imports

Support removing unused import in Vue.

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
TypeScript
Stars
51
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Currently, removing unused imports is disabled for *.vue* files because imports can be used outside of `` ([link](https://vuejs.org/api/sfc-script-setup.html#using-components)) and there isn't an easy way to find them.

The feature request is to find a way to enable it.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing unused-import removal path and its special handling for *.vue files, then review the Vue SFC and script-setup usage linked in the issue. Define how template component references are identified and add coverage for safe removal; done means unused imports can be removed without deleting imports still used outside <script>.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.