167 lines
4.9 KiB
JSON
167 lines
4.9 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
|
|
"files": {
|
|
"ignoreUnknown": false,
|
|
"ignore": [
|
|
"examples/*",
|
|
"dist/*",
|
|
".turbo/*",
|
|
".changeset/*",
|
|
".github/*",
|
|
"node_modules/*",
|
|
"docs/*"
|
|
]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"useEditorconfig": true,
|
|
"formatWithErrors": false,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineEnding": "lf",
|
|
"lineWidth": 80,
|
|
"attributePosition": "auto",
|
|
"bracketSpacing": true,
|
|
"ignore": ["**/dist", "**/node_modules", "**/docs", "**/*.md"]
|
|
},
|
|
"organizeImports": { "enabled": true },
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": false,
|
|
"complexity": {
|
|
"noExtraBooleanCast": "error",
|
|
"noMultipleSpacesInRegularExpressionLiterals": "error",
|
|
"noUselessCatch": "error",
|
|
"noUselessTypeConstraint": "error",
|
|
"noWith": "error"
|
|
},
|
|
"correctness": {
|
|
"noConstAssign": "error",
|
|
"noConstantCondition": "off",
|
|
"noEmptyCharacterClassInRegex": "error",
|
|
"noEmptyPattern": "error",
|
|
"noGlobalObjectCalls": "error",
|
|
"noInnerDeclarations": "error",
|
|
"noInvalidConstructorSuper": "error",
|
|
"noNewSymbol": "error",
|
|
"noNonoctalDecimalEscape": "error",
|
|
"noPrecisionLoss": "error",
|
|
"noSelfAssign": "error",
|
|
"noSetterReturn": "error",
|
|
"noSwitchDeclarations": "error",
|
|
"noUndeclaredVariables": "error",
|
|
"noUnreachable": "error",
|
|
"noUnreachableSuper": "error",
|
|
"noUnsafeFinally": "error",
|
|
"noUnsafeOptionalChaining": "error",
|
|
"noUnusedLabels": "error",
|
|
"noUnusedVariables": "error",
|
|
"useArrayLiterals": "off",
|
|
"useIsNan": "error",
|
|
"useValidForDirection": "error",
|
|
"useYield": "error"
|
|
},
|
|
"style": {
|
|
"noNamespace": "error",
|
|
"noVar": "error",
|
|
"useAsConstAssertion": "error",
|
|
"useBlockStatements": "error",
|
|
"useConst": "error"
|
|
},
|
|
"suspicious": {
|
|
"noAsyncPromiseExecutor": "error",
|
|
"noCatchAssign": "error",
|
|
"noClassAssign": "error",
|
|
"noCompareNegZero": "error",
|
|
"noConsole": {
|
|
"level": "warn",
|
|
"options": { "allow": ["warn", "error"] }
|
|
},
|
|
"noControlCharactersInRegex": "error",
|
|
"noDebugger": "error",
|
|
"noDoubleEquals": "error",
|
|
"noDuplicateCase": "error",
|
|
"noDuplicateClassMembers": "error",
|
|
"noDuplicateObjectKeys": "error",
|
|
"noDuplicateParameters": "error",
|
|
"noEmptyBlockStatements": "error",
|
|
"noExplicitAny": "off",
|
|
"noExtraNonNullAssertion": "error",
|
|
"noFallthroughSwitchClause": "error",
|
|
"noFunctionAssign": "error",
|
|
"noGlobalAssign": "error",
|
|
"noImportAssign": "error",
|
|
"noMisleadingCharacterClass": "error",
|
|
"noMisleadingInstantiator": "error",
|
|
"noPrototypeBuiltins": "error",
|
|
"noRedeclare": "error",
|
|
"noShadowRestrictedNames": "error",
|
|
"noSparseArray": "error",
|
|
"noUnsafeDeclarationMerging": "error",
|
|
"noUnsafeNegation": "error",
|
|
"useGetterReturn": "error",
|
|
"useNamespaceKeyword": "error",
|
|
"useValidTypeof": "error"
|
|
}
|
|
},
|
|
"ignore": [
|
|
"examples/**/*",
|
|
"src/utils/keypair.ts",
|
|
"test/**/*",
|
|
"dist/**/*",
|
|
"src/langchain/evals/**/*"
|
|
]
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"jsxQuoteStyle": "double",
|
|
"quoteProperties": "asNeeded",
|
|
"trailingCommas": "all",
|
|
"semicolons": "always",
|
|
"arrowParentheses": "always",
|
|
"bracketSameLine": false,
|
|
"quoteStyle": "double",
|
|
"attributePosition": "auto",
|
|
"bracketSpacing": true
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"include": ["*.ts", "*.tsx", "*.mts", "*.cts"],
|
|
"linter": {
|
|
"rules": {
|
|
"correctness": {
|
|
"noConstAssign": "off",
|
|
"noGlobalObjectCalls": "off",
|
|
"noInvalidBuiltinInstantiation": "off",
|
|
"noInvalidConstructorSuper": "off",
|
|
"noNewSymbol": "off",
|
|
"noSetterReturn": "off",
|
|
"noUndeclaredVariables": "off",
|
|
"noUnreachable": "off",
|
|
"noUnreachableSuper": "off"
|
|
},
|
|
"style": {
|
|
"noArguments": "error",
|
|
"noVar": "error",
|
|
"useConst": "error"
|
|
},
|
|
"suspicious": {
|
|
"noClassAssign": "off",
|
|
"noDuplicateClassMembers": "off",
|
|
"noDuplicateObjectKeys": "off",
|
|
"noDuplicateParameters": "off",
|
|
"noFunctionAssign": "off",
|
|
"noImportAssign": "off",
|
|
"noRedeclare": "off",
|
|
"noUnsafeNegation": "off",
|
|
"useGetterReturn": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|