generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biome.jsonc
55 lines (55 loc) · 1.84 KB
/
biome.jsonc
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
// DOCS https://biomejs.dev/reference/configuration/
//──────────────────────────────────────────────────────────────────────────────
{
"linter": {
"rules": {
"all": true,
"nursery": {
"all": true,
"useImportRestrictions": "off", // over-complicating stuff
"noSecrets": "off" // buggy, many false positives
},
"complexity": {
"noExcessiveCognitiveComplexity": "info",
"useSimplifiedLogicExpression": "off" // complains about negated and-conditions
},
"performance": {
"useTopLevelRegex": "off" // often not needed
},
"suspicious": {
"noConsole": {
"level": "info",
"options": { "allow": ["assert", "error", "info", "warn"] } // only disallow `.log`
}
},
"correctness": {
"noUndeclaredDependencies": "off", // incompatible with typescript's default auto-imports
"useImportExtensions": "off", // incompatible with typescript's default auto-imports
"noNodejsModules": "off" // Obsidian is client-site, thus requiring them
},
"style": {
"useBlockStatements": "off", // too much clutter
"useImportType": "off", // incompatible with typescript's default auto-imports
"useTemplate": "off", // too strict, simple concatenations are often fine
"noParameterAssign": "off", // not useful
"useNamingConvention": { "level": "info", "options": { "strictCase": false } }
}
}
},
"javascript": {
"globals": ["activeDocument", "activeWindow"] // electron
},
"formatter": {
"useEditorconfig": true,
"formatWithErrors": true
},
"files": {
"ignoreUnknown": true
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json"
}