{ "$schema": "https://biomejs.dev/schemas/2.0.0-beta.5/schema.json", "assist": { "actions": { "source": { "organizeImports": "on" } } }, "vcs": { "clientKind": "git", "enabled": true, "useIgnoreFile": true }, "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" ] } ] } }, "useLiteralEnumMembers": "error", "noCommaOperator": "error", "noNegationElse": "error", "noYodaExpression": "error", "useBlockStatements": "error", "useCollapsedElseIf": "error", "useConsistentArrayType": { "level": "error", "options": { "syntax": "shorthand" } }, "useConsistentBuiltinInstantiation": "error", "useExplicitLengthCheck": "error", "useForOf": "error", "useNodeAssertStrict": "error", "useShorthandAssign": "error", "useThrowNewError": "error", "useThrowOnlyError": "error", "useNodejsImportProtocol": "error", "useAsConstAssertion": "error", "useEnumInitializers": "error", "useSelfClosingElements": "error", "useConst": "error", "useSingleVarDeclarator": "error", "noUnusedTemplateLiteral": "error", "useNumberNamespace": "error", "useAtIndex": "warn", "noInferrableTypes": "error", "useCollapsedIf": "warn", "useExponentiationOperator": "error", "useTemplate": "error", "noParameterAssign": "error", "noNonNullAssertion": "error", "useDefaultParameterLast": "error", "useConsistentMemberAccessibility": { "level": "warn", "options": { "accessibility": "explicit" } }, "noArguments": "error", "useImportType": "error", "useExportType": "error", "noUselessElse": "error", "noProcessEnv": "error", "useShorthandFunctionType": "error", "useArrayLiterals": "error", "noCommonJs": "warn", "noExportedImports": "warn", "noSubstr": "warn", "useTrimStartEnd": "warn" }, "performance": { "noDynamicNamespaceImportAccess": "warn" }, "correctness": { "useImportExtensions": "error", "noConstantMathMinMaxClamp": "error", "noUndeclaredDependencies": "error", "noUnusedFunctionParameters": "error", "noUnusedImports": "error", "noUnusedPrivateClassMembers": "error" }, "nursery": { "noBitwiseOperators": "error", "noConstantBinaryExpression": "error", "noFloatingPromises": "error", "noGlobalDirnameFilename": "error", "noProcessGlobal": "warn", "noTsIgnore": "warn", "useConsistentObjectDefinition": { "level": "warn", "options": { "syntax": "shorthand" } }, "useParseIntRadix": "warn" }, "complexity": { "noForEach": "error", "noUselessStringConcat": "error", "useDateNow": "error", "noUselessStringRaw": "warn", "noUselessEscapeInRegex": "warn", "useSimplifiedLogicExpression": "error", "useWhile": "error", "useNumericLiterals": "error" }, "suspicious": { "noDuplicateTestHooks": "error", "noOctalEscape": "error", "noTemplateCurlyInString": "warn", "noEmptyBlockStatements": "error", "useAdjacentOverloadSignatures": "warn", "useGuardForIn": "warn", "noDuplicateElseIf": "warn", "noEvolvingTypes": "error", "noIrregularWhitespace": "warn", "noExportsInTest": "error", "noVar": "error", "useAwait": "error", "useErrorMessage": "error", "useNumberToFixedDigitsArgument": "error" } } }, "overrides": [ { "includes": ["**/packages/client/versia/client.ts"], "linter": { "rules": { "style": { "useNamingConvention": "off" } } } } ], "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 4 }, "javascript": { "globals": ["HTMLRewriter", "BufferEncoding"] }, "files": { "includes": ["**"] } }