- 关闭 formatter 和 organizeImports(保持原始代码风格,减少 git diff) - lint/format script 改为 biome lint(只做规则检查) - 新增关闭规则:noConsole, noArrayIndexKey, noConfusingLabels, useIterableCallbackReturn, noVoidTypeReturn, noConstantCondition, noUnusedFunctionParameters, noUselessEmptyExport, useArrowFunction, useLiteralKeys, useImportType, useNodejsImportProtocol - 零源码改动,仅调整配置文件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
87 lines
2.0 KiB
JSON
87 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"includes": ["**", "!!**/dist", "!!**/packages/@ant"]
|
|
},
|
|
"formatter": {
|
|
"enabled": false,
|
|
"indentStyle": "tab",
|
|
"lineWidth": 120
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noAssignInExpressions": "off",
|
|
"noDoubleEquals": "off",
|
|
"noRedeclare": "off",
|
|
"noImplicitAnyLet": "off",
|
|
"noGlobalIsNan": "off",
|
|
"noFallthroughSwitchClause": "off",
|
|
"noShadowRestrictedNames": "off",
|
|
"noArrayIndexKey": "off",
|
|
"noConsole": "off",
|
|
"noConfusingLabels": "off",
|
|
"useIterableCallbackReturn": "off"
|
|
},
|
|
"style": {
|
|
"useConst": "off",
|
|
"noNonNullAssertion": "off",
|
|
"noParameterAssign": "off",
|
|
"useDefaultParameterLast": "off",
|
|
"noUnusedTemplateLiteral": "off",
|
|
"useTemplate": "off",
|
|
"useNumberNamespace": "off",
|
|
"useNodejsImportProtocol": "off",
|
|
"useImportType": "off"
|
|
},
|
|
"complexity": {
|
|
"noForEach": "off",
|
|
"noBannedTypes": "off",
|
|
"noUselessConstructor": "off",
|
|
"noStaticOnlyClass": "off",
|
|
"useOptionalChain": "off",
|
|
"noUselessSwitchCase": "off",
|
|
"noUselessFragments": "off",
|
|
"noUselessTernary": "off",
|
|
"noUselessLoneBlockStatements": "off",
|
|
"noUselessEmptyExport": "off",
|
|
"useArrowFunction": "off",
|
|
"useLiteralKeys": "off"
|
|
},
|
|
"correctness": {
|
|
"noUnusedVariables": "off",
|
|
"noUnusedImports": "off",
|
|
"useExhaustiveDependencies": "off",
|
|
"noSwitchDeclarations": "off",
|
|
"noUnreachable": "off",
|
|
"useHookAtTopLevel": "off",
|
|
"noVoidTypeReturn": "off",
|
|
"noConstantCondition": "off",
|
|
"noUnusedFunctionParameters": "off"
|
|
},
|
|
"a11y": {
|
|
"recommended": false
|
|
},
|
|
"nursery": {
|
|
"recommended": false
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double"
|
|
}
|
|
},
|
|
"assist": {
|
|
"enabled": false
|
|
}
|
|
}
|