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

Support for organizing imports #10

Open
rubiesonthesky opened this issue Mar 6, 2024 · 0 comments
Open

Support for organizing imports #10

rubiesonthesky opened this issue Mar 6, 2024 · 0 comments

Comments

@rubiesonthesky
Copy link

I'd like to be able to use biome's import oganizing while also formatting code otherwise. https://biomejs.dev/analyzer/

The way currently to do it, is to install biome to npm project and call it separately with npm script. Another way is to use exec plugin. I got it working with below setup. However, this does not feel optimal way. It needs to call npx to install biome and then run it through node, when biome plugin is already added to dprint setup.

  "exec": {
    "commands": [{
      "associations": [
        "src/**/*.{ts,js}"
      ],
      "command": "npx @biomejs/biome check --apply --formatter-enabled=true --linter-enabled=false --organize-imports-enabled=true {{file_path}}",
      "stdin": false
    }]
  }
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