Skip to content

Support for organizing imports #10

@rubiesonthesky

Description

@rubiesonthesky

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
    }]
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions