Effect CommunityEC
Effect Community3mo ago
1 reply
nemmtor

Configuring Biome to Separate Effect Imports in Effect-Native Projects

Maybe it will be useful for some1 - when building effect-native projects it's such a rare thing to import some 3rd parties that I decided to configure biome in a way that it treats effect imports as a separate group - it makes non-effect imports easier to spot.
  "assist": {
    "enabled": true,
    "actions": {
      "source": {
        "organizeImports": {
          "level": "on",
          "options": {
            "groups": [
              [":BUN:", ":NODE:"],
              ":BLANK_LINE:",
              ":URL:",
              ":BLANK_LINE:",
              [":PACKAGE:", ":PACKAGE_WITH_PROTOCOL:", "!effect/**", "!@effect/**"],
              ":BLANK_LINE:",
              [
                "effect/**",
                "@effect/**"
              ],
              ":BLANK_LINE:",
              ":URL:",
              ":BLANK_LINE:",
              ":PATH:"
            ]
          }
        }
      }
    }
  }
Was this page helpful?