diff options
| author | Ivan Gabaldon <igabaldon@inetol.net> | 2025-07-06 12:27:28 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-08-18 16:38:32 +0200 |
| commit | 60bd8b90f04d5d825fc8ac279cb7fdfde9fe78ea (patch) | |
| tree | 19b2639638e7845597f9aa839eda39a456188a1c /client/simple/biome.json | |
| parent | adc4361eb919604889dc0661e75ef6ac8cfc4d23 (diff) | |
[enh] theme/simple: custom router
Lay the foundation for loading scripts granularly depending on the endpoint it's
on.
Remove vendor specific prefixes as there are now managed by browserslist and
LightningCSS.
Enabled quite a few rules in Biome that don't come in recommended to better
catch issues and improve consistency.
Related:
- https://github.com/searxng/searxng/pull/5073#discussion_r2256037965
- https://github.com/searxng/searxng/pull/5073#discussion_r2256057100
Diffstat (limited to 'client/simple/biome.json')
| -rw-r--r-- | client/simple/biome.json | 113 |
1 files changed, 111 insertions, 2 deletions
diff --git a/client/simple/biome.json b/client/simple/biome.json index 1c0769fe9..e84fa5dfe 100644 --- a/client/simple/biome.json +++ b/client/simple/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.1.2/schema.json", + "$schema": "https://biomejs.dev/schemas/2.1.3/schema.json", "files": { "includes": ["**", "!dist/**", "!node_modules/**"], "ignoreUnknown": true @@ -28,7 +28,116 @@ "linter": { "enabled": true, "rules": { - "recommended": true + "recommended": true, + "complexity": { + "noForEach": "error", + "useSimplifiedLogicExpression": "error" + }, + "correctness": { + "noUndeclaredVariables": { + "level": "error", + "options": { + "checkTypes": true + } + }, + "useImportExtensions": "error" + }, + "nursery": { + "noAwaitInLoop": "warn", + "noBitwiseOperators": "warn", + "noConstantBinaryExpression": "warn", + "noGlobalDirnameFilename": "warn", + "noImplicitCoercion": "warn", + "noMisusedPromises": "warn", + "noUnassignedVariables": "warn", + "noUselessBackrefInRegex": "warn", + "noUselessEscapeInString": "warn", + "noUselessUndefined": "warn", + "useAdjacentGetterSetter": "warn", + "useConsistentObjectDefinition": { + "level": "warn", + "options": { + "syntax": "explicit" + } + }, + "useConsistentResponse": "warn", + "useExhaustiveSwitchCases": "warn", + "useExplicitType": "warn", + "useIndexOf": "warn", + "useIterableCallbackReturn": "warn", + "useJsonImportAttribute": "warn", + "useNumericSeparators": "warn", + "useObjectSpread": "warn", + "useParseIntRadix": "warn", + "useReadonlyClassProperties": "warn", + "useSingleJsDocAsterisk": "warn", + "useUnifiedTypeSignature": "warn" + }, + "performance": { + "noBarrelFile": "error", + "noDelete": "error", + "noNamespaceImport": "error", + "noReExportAll": "error", + "useTopLevelRegex": "error" + }, + "style": { + "noCommonJs": "error", + "noEnum": "error", + "noInferrableTypes": "error", + "noNamespace": "error", + "noNegationElse": "error", + "noNestedTernary": "error", + "noParameterAssign": "error", + "noParameterProperties": "error", + "noRestrictedTypes": { + "level": "error", + "options": { + "types": { + "Element": { + "message": "Element is too generic", + "use": "HTMLElement" + } + } + } + }, + "noSubstr": "error", + "noUnusedTemplateLiteral": "error", + "noUselessElse": "error", + "noYodaExpression": "error", + "useAsConstAssertion": "error", + "useAtIndex": "error", + "useCollapsedElseIf": "error", + "useCollapsedIf": "error", + "useConsistentArrayType": { + "level": "error", + "options": { + "syntax": "shorthand" + } + }, + "useConsistentBuiltinInstantiation": "error", + "useConsistentMemberAccessibility": { + "level": "error", + "options": { + "accessibility": "explicit" + } + }, + "useDefaultSwitchClause": "error", + "useExplicitLengthCheck": "error", + "useForOf": "error", + "useNumberNamespace": "error", + "useShorthandAssign": "error", + "useSingleVarDeclarator": "error", + "useThrowNewError": "error", + "useThrowOnlyError": "error", + "useTrimStartEnd": "error" + }, + "suspicious": { + "noAlert": "error", + "noEmptyBlockStatements": "error", + "noEvolvingTypes": "error", + "noVar": "error", + "useNumberToFixedDigitsArgument": "error" + } } }, "javascript": { |