Repository navigation
Expand file tree
/
Copy pathbiome.jsonc
More file actions
167 lines (167 loc) · 5.2 KB
/
Copy pathbiome.jsonc
File metadata and controls
167 lines (167 loc) · 5.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
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
{
"$schema": "https://biomejs.dev/schemas/2.4.2/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"includes": [
"**",
"!**/drizzle",
"!**/*.template.js",
"!**/*.template.sh",
"!**/*.template.ts",
"!plans",
"!apps/*/plans",
"!**/*.generated.ts",
// Lingui catalogs: .po plus compiled messages.ts (lingui compile output).
"!packages/i18n/locales",
"!apps/mobile/uniwind-types.d.ts",
"!packages/sdk/src",
// Vendored Vale style packages (synced by `vale sync`); don't reformat.
"!apps/marketing/vale-styles",
// Written by the CLA bot on every signature; reformatting it would fight the bot.
"!signatures"
]
},
"formatter": {
"formatWithErrors": true
},
"css": {
"parser": {
"cssModules": true,
"tailwindDirectives": true
}
},
"linter": {
"rules": {
"recommended": true,
"style": {
// Sync subprocesses block the serving event loop (Electron main,
// host-service, pty-daemon). Companion to the per-package
// no-*-blocking ratchet tests, which also catch namespace access
// (childProcess.execSync) and allowlist the legacy call sites.
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"node:child_process": {
"importNames": ["execSync", "spawnSync", "execFileSync"],
"message": "Sync subprocesses freeze the serving event loop (Electron main / host-service / pty-daemon) until the child exits — every request queues behind them. Prefer async spawn/execFile: the caller awaits the same result, but the loop keeps serving while the child runs. Git reads belong in the worker pools."
},
"child_process": {
"importNames": ["execSync", "spawnSync", "execFileSync"],
"message": "Sync subprocesses freeze the serving event loop (Electron main / host-service / pty-daemon) until the child exits — every request queues behind them. Prefer async spawn/execFile: the caller awaits the same result, but the loop keeps serving while the child runs. Git reads belong in the worker pools."
},
"@vercel/sandbox": "Most calls on a raw sandbox handle resume a stopped box. Use the functions in packages/trpc/src/lib/sandbox, where only a wake or a create may resume one.",
"@superset/db/cloud-usage-query": {
"importNames": [
"queryFleetCloudUsage",
"queryFleetCloudUsageByWorkspaceDay",
"queryFleetCloudUsageSeries",
"listFleetCloudBoots",
"getFleetCloudBoot"
],
"message": "These read every organization and are for staff tools only (the admin app). A customer procedure uses queryCloudUsage and listCloudBoots, which take one organization."
}
}
}
}
}
}
},
"overrides": [
{
"includes": ["packages/cli-framework/**", "packages/cli/**"],
"linter": {
"rules": {
"suspicious": {
"noExplicitAny": "off"
},
"style": {
"noNonNullAssertion": "off"
}
}
}
},
{
// Tests, scripts, and build tooling don't run on a serving loop.
"includes": [
"**/*.test.ts",
"**/*.test.tsx",
"**/*.node-test.ts",
"**/*.bench.ts",
"**/test/**",
"**/test-helpers.ts",
"**/scripts/**"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": "off"
}
}
}
},
{
// The one place that holds sandbox handles, and the release tooling that
// builds its own boxes. Neither runs on a desktop or host-service loop.
"includes": ["packages/trpc/src/lib/sandbox/**", "packages/sandbox/**"],
"linter": {
"rules": {
"style": {
"noRestrictedImports": "off"
}
}
}
},
{
// Legacy on-loop sync-subprocess call sites, frozen by the
// no-*-blocking ratchet tests — delete entries here as they're fixed.
"includes": [
"apps/desktop/src/main/lib/terminal-host/client.ts",
"packages/pty-daemon/src/process-tree.ts",
"packages/shared/src/host-info.ts"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": "off"
}
}
}
},
{
"includes": [
"apps/desktop/src/renderer/**",
"!apps/desktop/src/renderer/components/RendererLayout/renderer-safety.test.ts"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"@superset/workspace-fs/host": "Renderer code must stay browser-compatible. Import Node filesystem helpers from the desktop server/host layer instead.",
"@superset/workspace-fs/server": "Renderer code must stay browser-compatible. Import Node filesystem helpers from the desktop server/host layer instead.",
"@tanstack/react-router": {
"importNames": ["Navigate"],
"message": "<Navigate> re-navigates whenever its props object identity changes — inline usage loops into React error #185 (#5729, SUPER-1814). Use Redirect from renderer/components/Redirect, or `beforeLoad: () => { throw redirect(...) }` for static targets."
}
},
"patterns": [
{
"group": ["node:*"],
"message": "Renderer code must not import Node builtins."
}
]
}
}
}
}
}
}
]
}