Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"use client" always on top sorting #10

Open
yogithesymbian opened this issue Jul 18, 2024 · 1 comment
Open

"use client" always on top sorting #10

yogithesymbian opened this issue Jul 18, 2024 · 1 comment

Comments

@yogithesymbian
Copy link

how to make

"use client"; // position always on line 1 

here is my settings

"customImportSort.sortingSettings": [
    {
      "regex": "^\"use client\";$",
      "importance": 3
    },
    {
      "regex": "^react$",
      "importance": 4
    },

// default settings
...
....
......
@yogithesymbian
Copy link
Author

"customImportSort.sortingSettings": [
    {
      "regex": "^\"use client\";$",
      "importance": 6
    },

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

No branches or pull requests

1 participant