-
-
Notifications
You must be signed in to change notification settings - Fork 188
/
Copy pathbiome.jsonc
139 lines (139 loc) · 8.01 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"files": {
"ignore": [
"node_modules/**",
"jsapp/compiled/**",
"*.css",
"*.min.js",
"*-min.js",
"bootstrap*.js",
"jquery*.js",
"kobo/apps/openrosa/apps/logger/fixtures/*"
]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"enabled": true, // Default.
"formatWithErrors": false, // Default.
"ignore": [], // Default.
"attributePosition": "auto", // Default.
"indentStyle": "space", // Default is tab, we use space due imho the real standard.
"indentWidth": 2, // Default.
"lineWidth": 120, // Default is 80, we use 120 due wider monitors nowadays.
"lineEnding": "lf" // Default.
},
"javascript": {
"jsxRuntime": "reactClassic", // TODO: check babel and typescript and use the transparent runtime.
"formatter": {
"arrowParentheses": "always", // Default.
"bracketSameLine": false, // Default.
"bracketSpacing": true, // Default.
"jsxQuoteStyle": "single", // Default is double, we use single for a cleaner look.
"quoteProperties": "asNeeded", // Default.
"semicolons": "asNeeded", // Default is always, we use asNeeded for a cleaner look.
"trailingCommas": "all", // Default
"attributePosition": "auto", // Default.
"quoteStyle": "single" // Default is double, we use single for a cleaner look.
}
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
// Note: amount of cases are written as of May 7, 2025, commit 87af38ed5.
"correctness": {
"noEmptyPattern": "off", // Recommended rule. TODO: review 5 cases and enable.
"noInnerDeclarations": "off", // Recommended rule. TODO: review 22 cases and enable.
"noInvalidUseBeforeDeclaration": "off", // Recommended rule. TODO: review 2 cases and enable.
"noSwitchDeclarations": "off", // Recommended rule. TODO: review 2 cases and enable.
"noUnsafeOptionalChaining": "off", // Recommended rule. TODO: review 2 cases and enable.
"noUnusedImports": "error", // Enable all safely fixable rules.
"useExhaustiveDependencies": "off", // Recommended rule. TODO: review 101 cases and enable.
"useJsxKeyInIterable": "off" // Recommended rule. TODO: review 17 cases and enable.
},
"suspicious": {
"noArrayIndexKey": "off", // Recommended rule. TODO: review 40 cases and enable.
"noAssignInExpressions": "off", // Recommended rule. TODO: review 4 cases and enable.
"noConfusingVoidType": "off", // Recommended rule. TODO: review 2 cases and enable.
"noControlCharactersInRegex": "off", // Recommended rule. TODO: review 4 cases and enable.
"noDoubleEquals": "off", // Recommended rule. TODO: review 14 cases and enable.
"noExplicitAny": "off", // Recommended rule. TODO: review 129 cases and enable.
"noImplicitAnyLet": "off", // Recommended rule. TODO: review 42 cases and enable.
"noPrototypeBuiltins": "off", // Recommended rule. TODO: review 3 cases and enable.
"noReactSpecificProps": "off", // We use React.
"noRedeclare": "off", // Recommended rule. TODO: review 1 case and enable.
"noShadowRestrictedNames": "off", // Recommended rule. TODO: review 2 cases and enable.
"useIsArray": "off", // Recommended rule. TODO: review 3 cases and enable.
"useValidTypeof": "off" // Recommended rule. TODO: review 3 cases and enable.
},
"security": {
"noDangerouslySetInnerHtml": "off" // Recommended rule. TODO: review 11 cases and enable.
},
"complexity": {
"noBannedTypes": "off", // Recommended rule. TODO: review 144 cases and enable.
"noExtraBooleanCast": "off", // Recommended rule. TODO: review 3 cases and enable.
"noForEach": "off", // Recommended rule. TODO: review 217 cases and enable.
"noUselessConstructor": "off", // Recommended rule. TODO: review 1 cases and enable.
"noUselessFragments": "off", // Recommended rule. TODO: review 4 cases and enable.
"noUselessSwitchCase": "off", // Recommended rule. TODO: review 2 cases and enable.
"noUselessTernary": "off", // Recommended rule. TODO: review 4 cases and enable.
"noUselessUndefinedInitialization": "error", // Enable all safely fixable rules.
"useLiteralKeys": "off", // Recommended rule. TODO: review 28 cases and enable.
"useOptionalChain": "off" // Recommended rule. TODO: review 36 cases and enable.
},
"performance": {
"noAccumulatingSpread": "off", // Recommended rule. TODO: review 7 cases and enable.
"noDelete": "off" // Recommended rule. TODO: review 17 cases and enable.
},
"a11y": {
"noBlankTarget": "off", // Not a problem for modern browsers; see 2021 update, see https://mathiasbynens.github.io/rel-noopener/#recommendations.
"noLabelWithoutControl": "off", // Recommended rule. TODO: review 63 cases and enable.
"noNoninteractiveTabindex": "off", // Recommended rule. TODO: review 1 cases and enable.
"noPositiveTabindex": "off", // Recommended rule. TODO: review 1 cases and enable.
"noSvgWithoutTitle": "off", // Recommended rule. TODO: review 1 cases and enable.
"useAltText": "off", // Recommended rule. TODO: review 1 cases and enable.
"useAriaPropsForRole": "off", // Recommended rule. TODO: review 1 cases and enable.
"useButtonType": "off", // Recommended rule. TODO: review 31 cases and enable.
"useFocusableInteractive": "off", // Recommended rule. TODO: review 2 cases and enable.
"useIframeTitle": "off", // Recommended rule. TODO: review 4 cases and enable.
"useKeyWithClickEvents": "off", // Recommended rule. TODO: review 24 cases and enable.
"useKeyWithMouseEvents": "off", // Recommended rule. TODO: review 1 cases and enable.
"useMediaCaption": "off", // Recommended rule. TODO: review 3 cases and enable.
"useSemanticElements": "off", // Recommended rule. TODO: review 5 cases and enable.
"useValidAnchor": "off" // Recommended rule. TODO: review 4 cases and enable.
},
"style": {
"noArguments": "off", // Recommended rule. TODO: review 6 cases and enable.
"noCommaOperator": "off", // Recommended rule. TODO: review 7 cases and enable.
"noImplicitBoolean": "off", // Enable all safely fixable rules, except this for a cleaner look.
"noInferrableTypes": "error", // Enable all safely fixable rules.
"noNegationElse": "error", // Enable all safely fixable rules.
"noNonNullAssertion": "off", // Recommended rule. TODO: review 50 cases and enable.
"noParameterAssign": "off", // Recommended rule. TODO: review 31 cases and enable.
"noUnusedTemplateLiteral": "off", // Recommended rule. TODO: review 5 cases and enable.
"noUselessElse": "off", // Recommended rule. TODO: review 167 cases and enable.
"noVar": "off", // Recommended rule. TODO: review 234 cases and enable.
"noYodaExpression": "error", // Enable all safely fixable rules.
"useAsConstAssertion": "error", // Enable all safely fixable rules.
"useCollapsedElseIf": "error", // Enable all safely fixable rules.
"useDefaultParameterLast": "off", // Recommended rule. TODO: review 1 cases and enable.
"useExportType": "error", // Enable all safely fixable rules.
"useNamingConvention": "off", // TODO: Enable all safely fixable rules.
"useNodeAssertStrict": "error", // Enable all safely fixable rules.
"useNodejsImportProtocol": "off", // Recommended rule. TODO: review 3 cases and enable.
"useSelfClosingElements": "error", // Enable all safely fixable rules.
"useSingleVarDeclarator": "off", // Recommended rule. TODO: review 35 cases and enable.
"useTemplate": "off", // Recommended rule. TODO: review 103 cases and enable.
"useWhile": "error" // Enable all safely fixable rules.
}
}
}
}