-
Notifications
You must be signed in to change notification settings - Fork 132
Expand file tree
/
Copy pathbiome.jsonc
More file actions
197 lines (197 loc) · 6.05 KB
/
biome.jsonc
File metadata and controls
197 lines (197 loc) · 6.05 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
"css": {
"parser": {
"tailwindDirectives": true
}
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
},
"includes": ["**", "!agents-cli/src/commands/pull-v4/__tests__/__snapshots__/**"]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": [
"**",
"!packages/agents-mcp",
"!**/__snapshots__/*.json",
// The .cursor/skills and .codex/skills entries under public/agents/
// are symlinks pointing UP to repo root (../../../.cursor/skills,
// ../../../.codex/skills). Without these excludes, biome traverses
// through the symlinks and reformats files at REPO ROOT (outside
// public/agents/'s scope), creating massive auto-format diffs on
// every PR that touches public/agents/**. Skills are internal-only
// and their formatting is owned by the cross-harness-skills-sync
// workflow, not by biome.
"!.cursor/skills",
"!.codex/skills"
]
},
"linter": {
"enabled": true,
"includes": [
"**",
"!**/node_modules/**",
"!**/coverage/**",
"!**/dist/**",
"!**/drizzle/**",
"!**/drizzle.config.*",
"!**/.next/**",
"!**/build/**",
"!**/out/**",
"!**/*.css",
"!**/.source/**",
"!**/.vercel/**",
"!**/tsconfig.json"
],
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off",
"noArrayIndexKey": "off",
"noConfusingLabels": "off",
"useIterableCallbackReturn": "error",
"noDocumentCookie": "off",
"noAssignInExpressions": "off"
},
"complexity": {
"noStaticOnlyClass": "off",
"noBannedTypes": "off",
"noUselessFragments": "off",
"noUselessLoneBlockStatements": "off"
},
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"react": {
"importNames": ["useCallback", "useMemo", "memo"],
"message": "The highlighted React API is flagged.\nWe use the React Compiler, which automatically memoizes where needed.\nIn 99% of cases, manual memoization is unnecessary.\nIf you encounter a real issue, please ping Dima in Slack."
},
"@hono/zod-openapi": {
"importNames": ["createRoute"],
"message": "Use createProtectedRoute from @inkeep/agents-core/middleware instead. For intentionally public routes, use createProtectedRoute with noAuth() as the permission. If neither applies, add a biome-ignore comment explaining why."
}
},
"patterns": [
{
"group": "react",
"importNamePattern": "useContext",
"message": "Use the `use()` hook instead."
}
]
}
},
"noUnusedTemplateLiteral": "off",
"noNonNullAssertion": "warn",
"noUselessElse": "error",
"useSelfClosingElements": "error",
"useImportType": "error"
},
"performance": {
"noImgElement": "warn",
"noDynamicNamespaceImportAccess": "off"
},
"a11y": {
"useSemanticElements": "off",
"useValidAriaRole": "error",
"useButtonType": "error"
},
"correctness": {
"noUnusedVariables": "warn",
"noUnusedImports": "error",
"useExhaustiveDependencies": {
"level": "error",
"options": {
"hooks": [
{
"name": "useReactFlow",
"stableResult": [
// Based on https://github.com/xyflow/xyflow/blob/3f93f828ec931b6fba639d5a38ffd69eaca29f3a/packages/react/src/hooks/useReactFlow.ts#L67
"getNodes",
"getNode",
"getInternalNode",
"getEdges",
"getEdge",
"setNodes",
"setEdges",
"addNodes",
"addEdges",
"toObject",
"deleteElements",
"getIntersectingNodes",
"isNodeIntersecting",
"updateNode",
"updateNodeData",
"updateEdge",
"updateEdgeData",
"getNodesBounds",
"getHandleConnections",
"getNodeConnections",
"fitView"
]
},
{ "name": "useAgentActions", "stableResult": true },
{ "name": "useMonacoActions", "stableResult": true },
{ "name": "useTheme", "stableResult": ["setTheme"] },
{
"name": "useCopilotContext",
"stableResult": ["setIsOpen", "setIsStreaming", "openCopilot", "setDynamicHeaders"]
},
{
"name": "useSidePane",
"stableResult": ["setQueryState", "openAgentPane"]
}
]
}
},
"useJsxKeyInIterable": "warn",
"useUniqueElementIds": "off",
"noNestedComponentDefinitions": "off",
"noUnusedFunctionParameters": "error"
},
"security": {
"noDangerouslySetInnerHtml": "off"
},
"nursery": {
"useRequiredScripts": {
"level": "error",
"options": {
"requiredScripts": ["knip"]
}
},
"noReactForwardRef": "error"
}
}
},
"formatter": {
"includes": [
"**",
"!**/drizzle/**",
"!**/__snapshots__/*.json",
"!agents-cli/src/commands/pull-v4/__tests__/__snapshots__/**"
],
"enabled": true,
"lineWidth": 100,
"indentStyle": "space",
"indentWidth": 2
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "always"
}
}
}