Skip to Content
Octopus Energy Packages
Oxfmt

API Reference

Exported oxfmt configuration

oxfmt/config

Shared OxfmtConfig default export for formatting and import sorting.

import sharedConfig from "@octopus-energy/oxc/oxfmt/config";
config.oxfmt.ts
import sharedConfig from "@octopus-energy/oxc/oxfmt/config";
import { defineConfig } from "oxfmt";

export default defineConfig({
  ...sharedConfig,
  ignorePatterns: ["**/node_modules/**", "**/dist/**"],
});
OptionValue
printWidth100
singleQuotetrue
tabWidth4
trailingComma"es5"
sortImportsGroups side effects first, then Node built-ins, external imports, internal aliases, and relative imports.

On this page