-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgreptile.json
More file actions
56 lines (56 loc) · 2.2 KB
/
Copy pathgreptile.json
File metadata and controls
56 lines (56 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"commentTypes": ["logic", "syntax", "style"],
"instructions": "Enforce project-specific review guidelines - see docs/review-guidelines.md for complete checklist",
"customContext": {
"rules": [
{
"scope": ["src/**"],
"rule": "Package dependencies must follow core → hooks → ui dependency order"
},
{
"scope": ["src/**"],
"rule": "Always use workspace:* protocol for internal dependencies"
},
{
"scope": ["src/**"],
"rule": "Schema-first: All types defined in schemas/*.ts using Zod"
},
{
"scope": ["packages/**", ".changeset/**"],
"rule": "Unified versioning: All packages must maintain exact same version. This change will happen automatically any time a single package is updated via changeset."
},
{
"scope": ["packages/core/src/**"],
"rule": "Zero React: Pure TypeScript, no React dependencies"
},
{
"scope": ["packages/hooks/src/context/**"],
"rule": "Context and Provider in separate files, exported via context/index.ts"
},
{
"scope": ["packages/ui/src/**"],
"rule": "Auto-injected styles: index.ts calls injectStyles() on module load"
},
{
"scope": ["packages/ui/src/components/**"],
"rule": "No hardcoded user-facing strings: use t() or Trans/i18nKey for aria-label, title, placeholder, alt, and visible copy. ESLint i18next/no-literal-string enforces this."
},
{
"scope": ["packages/ui/src/i18n/locales/**"],
"rule": "Locale JSON is upstream-owned (platform-localization). CI locale-ownership job fails feature PRs that edit packages/ui/src/i18n/locales/. Add English in sources/common/en.json (react.*); fr/es arrive via Crowdin sync PRs (chore/localization-sync-react-*)."
}
],
"files": [
{
"scope": ["*"],
"path": "docs/review-guidelines.md",
"description": "Comprehensive review checklist for all pull requests"
},
{
"scope": ["packages/ui/**"],
"path": "docs/i18n-guidelines.md",
"description": "Localization workflow: platform-localization source, Crowdin, and downstream sync"
}
]
}
}