-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbiome.jsonc
More file actions
124 lines (123 loc) · 2.89 KB
/
biome.jsonc
File metadata and controls
124 lines (123 loc) · 2.89 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
{
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
"files": {
"includes": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsonc",
"**/*.json",
"**/*.css",
"!apps/browser/crates/gramax-wasm/**/*.js",
"!apps/tauri/src-tauri/src/scripts/**/*.js",
"!apps/tauri/plugins/*/permissions/schemas/schema.json",
"!core/extensions/VersionControl/DiffHandler/diffMatchLib.js",
"!core/extensions/markdown/elements/drawio/logic/diagram-editor.js",
"!scripts/static/ensureCustomStyleLast.js",
"!apps/next/crates/**/*",
"!core/styles/article.css", // it breaks :c
"!.cargo/**/*",
"!.npm/**/*",
"!target/**/*",
"!**/dist/**/*",
"!**/out/**/*",
"!**/build/**/*",
"!**/gen/**/*"
]
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"indentStyle": "tab",
"indentWidth": 4,
"lineWidth": 120
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all"
},
"globals": ["Bun", "refreshPage"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noChildrenProp": "warn",
"noUndeclaredVariables": "warn",
"noUnreachable": "warn",
"noUnusedImports": {
"fix": "safe",
"level": "warn",
"options": {}
},
"noUnusedVariables": "warn",
"noVoidTypeReturn": "warn",
"useExhaustiveDependencies": "warn",
"useHookAtTopLevel": "warn"
},
"complexity": {
"noUselessFragments": "off",
"noThisInStatic": "off",
"noStaticOnlyClass": "info"
},
"suspicious": {
"noArrayIndexKey": "warn",
"noAssignInExpressions": "warn",
"noAsyncPromiseExecutor": "warn",
"noConfusingVoidType": "warn",
"noDoubleEquals": "warn",
"noExplicitAny": "warn",
"noImplicitAnyLet": "warn",
"noControlCharactersInRegex": "warn",
"noShadowRestrictedNames": "off",
"useIterableCallbackReturn": "off"
},
"security": {
"noDangerouslySetInnerHtml": "off"
},
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "warn",
"noUselessElse": "warn",
"useConst": "warn",
"useNodejsImportProtocol": "off",
"useTemplate": "warn"
},
"a11y": {
"noLabelWithoutControl": "warn",
"useButtonType": "warn",
"useIframeTitle": "warn",
"useValidAnchor": "warn",
"useValidAriaRole": "warn",
"useGenericFontNames": "warn",
"noStaticElementInteractions": "off",
"noAutofocus": "off",
"noSvgWithoutTitle": "off",
"useAltText": "off",
"useMediaCaption": "off",
// not sure?
"useKeyWithClickEvents": "off",
"useKeyWithMouseEvents": "warn"
}
}
},
"assist": {
"actions": {
"source": {
"organizeImports": "on",
"useSortedAttributes": "on",
"useSortedProperties": "on"
}
},
"enabled": true
},
"vcs": {
"clientKind": "git",
"defaultBranch": "develop",
"enabled": true,
"useIgnoreFile": true
}
}