1import { check, kinds, project, territory } from "@myrtechnology/cli/rules";23// The run block `myr init` found in this repo's own files, each command with4// where it was found; deciders, kinds and the ratchet added since.5export default project({6 deciders: { "**": ["okafor", "lin-h", "oscar"] },7 kinds: [kinds.fix, kinds.lintToZero, kinds.ratchetDown, kinds.migrate],8 modules: territory.fromWorkspaces(),9 ratchets: {10 // Module-level bindings in a package's src/, which our own lint rule11 // warns about: six when the rule landed, one per package. The count may12 // only fall; at zero the rule becomes an error.13 "no-module-level-mutable-state": check.ratchet.count(14 "bun run lint --format json",15 { rule: "burrow/no-module-level-mutable-state" }16 ),17 },18 run: {19 checks: {20 // checks.lint from lefthook.yml21 lint: "bun run lint",22 // checks.types from lefthook.yml23 types: "bun run typecheck",24 // checks.unit from lefthook.yml25 unit: "bun test",26 },27 // setup inferred from bun.lock28 setup: "bun install --frozen-lockfile",29 // test from lefthook.yml30 test: "bun test {path}",31 },32});