Something went wrong. Try again.
Something went wrong. Try again.
outfitting-manager oxfmt.config.ts
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import { defineConfig, type OxfmtConfig } from "oxfmt";
// Shared formatting options for the root, docs, and workspace configs.export const fmtBase: OxfmtConfig = { printWidth: 100, tabWidth: 2, useTabs: false, endOfLine: "lf", semi: true, singleQuote: false, trailingComma: "all", insertFinalNewline: true, sortImports: true, sortPackageJson: true, sortTailwindcss: true,};
// Files the Workers Builds excludes and the ci.yml `changes` filter skip. A push touching only// them runs no check, so `check` must never read them. Bare names match at any depth; oxfmt// matches a config's patterns only below that config's directory, so every config carries them.// (AGENTS.md also holds a block that machine-memory init owns.)export const skippedDocs = ["README.md", "AGENTS.md", "CLAUDE.md"];
// Workspace packages also sort package.json scripts.export const workspaceFmt: OxfmtConfig = { ...fmtBase, sortPackageJson: { sortScripts: true }, ignorePatterns: skippedDocs,};
// Repo root only formats top-level files; each workspace formats itself with// its own oxfmt.config.ts.export default defineConfig({ ...fmtBase, ignorePatterns: [ "api/**", "cli/**", "contract/**", "docs/**", "iac/**", "router/**", "node_modules/**", "result/**", ...skippedDocs, // Root paths skipped by the Workers Builds excludes and the ci.yml filter. ".agents/**", ".zed/**", ".vscode/**", ".github/dependabot.yml", ],});