|
| 1 | +{ |
| 2 | + "strictness": 2, |
| 3 | + "commentTypes": ["logic", "syntax"], |
| 4 | + "triggerOnUpdates": true, |
| 5 | + "includeBranches": ["main"], |
| 6 | + "ignoreKeywords": "WIP\nDO NOT REVIEW", |
| 7 | + "ignorePatterns": "node_modules/**\ndist/**\nbuild/**\n**/*.min.js\npnpm-lock.yaml\nflake.lock\n**/*.snap\nreports/**\n**/*.webp\n**/*.png\n**/*.gif", |
| 8 | + "instructions": "TypeScript pnpm monorepo for pythinker-code, a provider-agnostic AI coding agent. packages/* are published libraries; apps/* are the CLI/TUI, web UI, and dashboard. The root AGENTS.md is the authoritative contributor guide; nearest sub-directory AGENTS.md files add local rules.", |
| 9 | + "rules": [ |
| 10 | + { |
| 11 | + "id": "no-type-weakening", |
| 12 | + "rule": "Do not weaken types to silence errors: no `any`, unconstrained `unknown`, `@ts-ignore`, or type assertions added only to make a type error go away.", |
| 13 | + "scope": ["packages/**", "apps/**"], |
| 14 | + "severity": "high" |
| 15 | + }, |
| 16 | + { |
| 17 | + "id": "flake-workspace-sync", |
| 18 | + "rule": "When a workspace package is added or removed in pnpm-workspace.yaml, flake.nix workspacePaths and workspaceNames must be updated in the same PR. A missing path silently drops files from the Nix build.", |
| 19 | + "severity": "high" |
| 20 | + }, |
| 21 | + { |
| 22 | + "id": "tests-can-fail", |
| 23 | + "rule": "Tests must be able to fail. Flag vacuous assertions: empty-set matches, missing awaits on async expectations, and mocked units asserting on the mock itself.", |
| 24 | + "scope": ["**/*.test.ts", "**/*.test.tsx"], |
| 25 | + "severity": "medium" |
| 26 | + }, |
| 27 | + { |
| 28 | + "id": "tui-reactivity", |
| 29 | + "rule": "Solid signals must not be destructured, rendering must stay allocation-light, and no blocking I/O on the render path.", |
| 30 | + "scope": ["apps/pythinker-code/src/tui/**"], |
| 31 | + "severity": "high" |
| 32 | + }, |
| 33 | + { |
| 34 | + "id": "changeset-required", |
| 35 | + "rule": "PRs that change published package behavior need a changeset. Default to minor or patch; a major bump requires explicit maintainer confirmation.", |
| 36 | + "severity": "medium" |
| 37 | + } |
| 38 | + ] |
| 39 | +} |
0 commit comments