-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbiome.jsonc
More file actions
35 lines (35 loc) · 1.61 KB
/
Copy pathbiome.jsonc
File metadata and controls
35 lines (35 loc) · 1.61 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
{
"$schema": "https://biomejs.dev/schemas/2.5.4/schema.json",
"extends": ["@kvnwolf/dobby/biome/core"],
"files": {
// The preset already brings ** plus the common ignores (.claude, .dobby,
// .github, *.md); only this repo's specific exclusions live here.
// `cli/biome` is excluded because it holds the VENDORED biome presets
// (generated by cli/scripts/vendor-biome.ts, byte-for-byte drift-gated by
// cli/src/vendor-biome.test.ts): biome's own JSON formatter would collapse
// their short arrays onto single lines and fight the generator's
// deterministic layout, breaking the drift compare. The generator owns
// that layout; the drift test proves it; biome must not touch it.
"includes": [
"!.claude-plugin",
"!cli/__fixtures__",
"!cli/biome",
"!docs",
"!plugin"
]
},
"overrides": [
{
// Repo delta (merges after ultracite's own test-file relaxations, which
// already turn off noConsole / noExplicitAny / complexity for tests):
// `useTopLevelRegex` is a micro-perf rule about recompiling a regex on each
// call. In the CLI's exhaustive `run.test.ts` (thousands of inline
// `toMatch(/…/)` assertions) it fires ~190 times with zero real cost — the
// regexes run once per assertion, never in a hot loop — and hoisting each to
// module scope would gut the readability of the assertions. Off for tests
// ONLY; it stays ON for src (where a hot-path regex is worth catching).
"includes": ["**/*.test.ts"],
"linter": { "rules": { "performance": { "useTopLevelRegex": "off" } } }
}
]
}