daidodo / daidodo/format-imports-vscode

"use dom" support

Open
#116 0 comments 1 reaction 0 assignees View on GitHub
bug enhancement help wanted
Dominant language
TypeScript
Stars
64
Forks
5
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Expo's DOM components require the "use dom" directive in the same way that client components require "use client".

**Describe the solution you'd like**
Don't sort "use dom" directives in the same way that the "use client" directive isn't sorted.

**Describe alternatives you've considered**

**Additional context**
[Add any other context or screenshots about the feature request here.
](https://docs.expo.dev/guides/dom-components/)

Contributor guide

Open the contributing guide

Research direction

Start by locating the directive-sorting logic in the format-imports-vscode repository and compare its handling of "use client" with the requested "use dom" behavior. Confirm the existing sorting behavior, then verify that "use dom" remains unsorted while other formatting still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.