-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbiome.jsonc
More file actions
48 lines (48 loc) · 1.33 KB
/
biome.jsonc
File metadata and controls
48 lines (48 loc) · 1.33 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
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["ultracite/core", "ultracite/next"],
"overrides": [
{
// Vitest 4 requires `function` (not arrow) for constructor mocks called with `new`
"includes": ["src/__tests__/**"],
"linter": {
"rules": {
"complexity": {
"useArrowFunction": "off"
}
}
}
}
],
"linter": {
"rules": {
"style": {
// PascalCase is standard for React components
"useFilenamingConvention": "off"
},
"complexity": {
// Allow higher complexity for complex map component setup logic
"noExcessiveCognitiveComplexity": {
"level": "warn",
"options": {
"maxAllowedComplexity": 65
}
},
// forEach is acceptable in test setup
"noForEach": "warn",
// Banned types are needed for mock setup
"noBannedTypes": "off"
},
"performance": {
// Barrel files are standard for library exports
"noBarrelFile": "off"
},
"suspicious": {
// Array index keys are acceptable when items are not reordered
"noArrayIndexKey": "warn",
// Iterator callback return is acceptable in test setup
"useIterableCallbackReturn": "warn"
}
}
}
}