1import { defineConfig } from "oxlint";2import antiSlop from "ultracite/oxlint/anti-slop";3import core from "ultracite/oxlint/core";45export default defineConfig({6 extends: [core, antiSlop],7 ignorePatterns: [8 ...(core.ignorePatterns ?? []),9 // The rule's fixtures keep the faults its test points at.10 "tools/oxlint/burrow/fixtures/**",11 ],12 jsPlugins: [{ name: "burrow", specifier: "./tools/oxlint/burrow/index.ts" }],13 rules: {14 // Every package's src/ runs inside long-lived server processes: state15 // kept in a module is shared by every request they handle. A warning16 // until the last module-level binding is gone, so the lint and its hook17 // stay green meanwhile; the count may only fall (the project's ratchet,18 // README "How we keep it tidy"). Then it becomes an error.19 "burrow/no-module-level-mutable-state": "warn",20 },21});