server/biome.json

132 lines
4.4 KiB
JSON
Raw Normal View History

2024-04-07 06:45:05 +02:00
{
2025-04-10 19:15:31 +02:00
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.1/schema.json",
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
2024-04-07 07:30:49 +02:00
},
"linter": {
"enabled": true,
"rules": {
"style": {
"useNamingConvention": {
"level": "warn",
"options": {
"requireAscii": false,
"strictCase": false,
"conventions": [
{
"selector": {
"kind": "typeProperty"
},
"formats": [
"camelCase",
"CONSTANT_CASE",
"PascalCase",
"snake_case"
]
},
{
"selector": {
"kind": "objectLiteralProperty",
"scope": "any"
},
"formats": [
"camelCase",
"CONSTANT_CASE",
"PascalCase",
"snake_case"
]
}
]
}
2025-04-10 19:15:31 +02:00
},
"useLiteralEnumMembers": "error",
"noCommaOperator": "error",
"useNodejsImportProtocol": "error",
"useAsConstAssertion": "error",
"useNumericLiterals": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useConst": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"useExponentiationOperator": "error",
"useTemplate": "error",
"noParameterAssign": "error",
"noNonNullAssertion": "error",
"useDefaultParameterLast": "error",
"noArguments": "error",
"useImportType": "error",
"useExportType": "error",
"noUselessElse": "error",
"useShorthandFunctionType": "error"
},
"correctness": {
"useImportExtensions": "error"
2024-06-13 10:52:03 +02:00
},
"nursery": {
"noDuplicateElseIf": "warn",
"useConsistentMemberAccessibility": {
"level": "warn",
"options": {
"accessibility": "explicit"
}
},
"noCommonJs": "warn",
"noDynamicNamespaceImportAccess": "warn",
"noExportedImports": "warn",
"noIrregularWhitespace": "warn",
"noSubstr": "warn",
"noTemplateCurlyInString": "warn",
"noUselessEscapeInRegex": "warn",
"noUselessStringRaw": "warn",
"useAdjacentOverloadSignatures": "warn",
"useExplicitType": "warn",
"useGuardForIn": "warn",
"useTrimStartEnd": "warn"
2025-04-10 19:15:31 +02:00
},
"complexity": {
"noExcessiveCognitiveComplexity": "off"
},
"suspicious": {
"noMisplacedAssertion": "off",
"noConsole": "off"
}
}
2024-04-07 07:30:49 +02:00
},
"overrides": [
{
2025-04-10 19:15:31 +02:00
"includes": ["**/packages/client/versia/client.ts"],
"linter": {
"rules": {
"style": {
"useNamingConvention": "off"
}
}
}
}
],
2024-04-07 07:30:49 +02:00
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4
},
"javascript": {
"globals": ["HTMLRewriter", "BufferEncoding"]
},
"files": {
2025-04-10 19:15:31 +02:00
"includes": [
"**",
"!**/node_modules",
"!**/dist",
"!**/cache",
"!**/build"
]
2024-04-07 07:30:49 +02:00
}
2024-04-07 06:45:05 +02:00
}