-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbiome.jsonc
More file actions
68 lines (67 loc) · 1.98 KB
/
biome.jsonc
File metadata and controls
68 lines (67 loc) · 1.98 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
// DOCS
// https://biomejs.dev/reference/configuration/
// https://biomejs.dev/linter/javascript/rules/
//──────────────────────────────────────────────────────────────────────────────
{
"linter": {
"domains": { "project": "all", "test": "all" },
// last rule update: 2025-07-09
"rules": {
"performance": {
"noBarrelFile": "on"
},
"style": {
"useNamingConvention": "on",
"useShorthandAssign": "on",
"useForOf": "on",
"useFilenamingConvention": "on",
"useDefaultSwitchClause": "on",
"useConsistentArrayType": "on",
"useAtIndex": "on",
"noYodaExpression": "on",
"noUselessElse": "on",
"noUnusedTemplateLiteral": "on",
"noSubstr": "on",
"noProcessEnv": "on",
"noNestedTernary": "on",
"noInferrableTypes": "on", // typos: ignore-line
"useTemplate": "off" // too strict, simple concatenations are often fine
},
"suspicious": {
"noConsole": {
"level": "warn",
"options": { "allow": ["assert", "error", "warn", "info", "debug", "trace"] }
},
"useErrorMessage": "on",
"useAwait": "on",
"noVar": "on",
"noEmptyBlockStatements": "on"
},
"complexity": {
"useWhile": "on",
"noUselessStringConcat": "on"
},
"correctness": {
"noUndeclaredDependencies": "off", // incompatible with non-relative typescript imports
"noUndeclaredVariables": "on"
}
}
},
"javascript": {
"globals": ["activeDocument", "activeWindow"] // Electron
},
"formatter": {
"useEditorconfig": true,
"lineWidth": 100, // needs to be set despite editorconfig https://github.com/biomejs/biome/issues/6475#issuecomment-2994126794
"formatWithErrors": true
},
"files": {
"ignoreUnknown": true
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json"
}