Something went wrong. Try again.
Something went wrong. Try again.
machine-memory oxfmt.config.ts
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import { defineConfig, type OxfmtConfig } from "oxfmt";
// Shared formatting options for the root, docs, and workspace configs.export const fmtBase: OxfmtConfig = { printWidth: 80, tabWidth: 2, useTabs: false, endOfLine: "lf", semi: true, singleQuote: false, trailingComma: "all", insertFinalNewline: true, sortImports: true, sortPackageJson: true, sortTailwindcss: true,};
// Docs the CI `changes` filter and Workers Builds skip (see ci.yml and AGENTS.md):// a push touching only these runs no check, so `check` must never read them. Bare// names match at any depth, so every oxfmt config lists them. machine-memory init// owns the managed block in AGENTS.md.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.export default defineConfig({ ...fmtBase, ignorePatterns: [ "cli/**", "contract/**", "docs/**", "node_modules/**", "api/**", "mcp/**", "router/**", "iac/**", ...skippedDocs, // Root-only paths skipped by the CI filter and Workers Builds. "LICENSE*", ".agents/**", ".zed/**", ".vscode/**", ".github/dependabot.yml", ],});