Contributing
Adding a New Rule
1 — Write the GritQL file
Create a .grit file in grit/:
A minimal rule:
2 — Document it in AGENTS.md
Add a ### rule-name section under ## Lint Rules in AGENTS.md.
Include: what it checks, the rationale, a ✗/✓ example, and any exception conditions.
3 — Add a docs page
Create docs/rules/my-new-rule.mdx following the structure of the existing rule pages.
4 — Register it in the sidebar
Add an entry to rspress.config.ts under sidebar['/rules/'].
5 — Test
Rule Naming
Use kebab-case. Names describe what is disallowed or preferred:

