Skip to content
Myr

project.ts

This file

Path

.myr/project.ts

32 lines · 1.1 KiB · TypeScript

Last changed by

landed by oscar90159e2

History of this file

Take it

landed by oscar90159e2

line 1why, one step back
1import { check, kinds, project, territory } from "@myrtechnology/cli/rules";

landed by oscabriel6182530

lines 2–5
2
3// 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({

landed by okaforc722380

line 6why, one step back
6 deciders: { "**": ["okafor", "lin-h", "oscar"] },

landed by oscabriel6182530

lines 7–32
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});