From 20b45b852a1e0e9cd2e5714a0881388ea27af4fd Mon Sep 17 00:00:00 2001 From: Soon Date: Mon, 29 Jul 2024 22:50:28 +0800 Subject: [PATCH] chore(infra/biome): switch the biome.jsonc to "off" (#7357) --- .typos.toml | 1 + biome.jsonc | 68 +++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 51 insertions(+), 18 deletions(-) diff --git a/.typos.toml b/.typos.toml index ac33eaaafe2..a5b942aad47 100644 --- a/.typos.toml +++ b/.typos.toml @@ -13,6 +13,7 @@ extend-exclude = [ "**/CHANGELOG.md", "GOVERNANCE.md", "pnpm-lock.yaml", + "biome.jsonc", "scripts/test/diff.cjs", "scripts/test/binary-path.cjs", ] diff --git a/biome.jsonc b/biome.jsonc index b5c6b33ef7d..9a278e59130 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -33,30 +33,62 @@ "linter": { "enabled": true, "rules": { - "recommended": false, + "recommended": true, "a11y": { - "useButtonType": "error", - "noSvgWithoutTitle": "error" + "useKeyWithClickEvents": "off" }, "complexity": { - "useArrowFunction": "error", - "useLiteralKeys": "error", - "noForEach": "error" + "noMultipleSpacesInRegularExpressionLiterals": "off", + "noStaticOnlyClass": "off", + "noThisInStatic": "off", + "noUselessConstructor": "off", + "noUselessTernary": "off", + "noBannedTypes": "off", + "useOptionalChain": "off", + "noUselessEmptyExport": "off", + "noExtraBooleanCast": "off" + }, + "correctness": { + "noEmptyPattern": "off", + "noConstructorReturn": "off", + "noSwitchDeclarations": "off", + "noInvalidUseBeforeDeclaration": "off", + "noInnerDeclarations": "off", + "noVoidTypeReturn": "off" }, "style": { - "noUnusedTemplateLiteral": "error", - "useNodejsImportProtocol": "error", - "noUselessElse": "error", - "noNonNullAssertion": "off", - "useNumberNamespace": "error", - "useConst": "error", - "useImportType": "error", - "useExportType": "error", - "useEnumInitializers": "error", - "useSelfClosingElements": "error" + "noCommaOperator": "off", + "useExponentiationOperator": "off", + "useShorthandFunctionType": "off", + "noArguments": "off", + "noInferrableTypes": "off", + "noVar": "off", + "noParameterAssign": "off", + "useTemplate": "off", + "useSingleVarDeclarator": "off", + "noNonNullAssertion": "off" + }, + "performance": { + "noDelete": "off", + "noAccumulatingSpread": "off" + }, + "security": { + "noGlobalEval": "off" }, "suspicious": { - "noDoubleEquals": "error" + "noEmptyInterface": "off", + "noGlobalAssign": "off", + "noGlobalIsNan": "off", + "noFallthroughSwitchClause": "off", + "noConstEnum": "off", + "noConfusingVoidType": "off", + "noPrototypeBuiltins": "off", + "noImplicitAnyLet": "off", + "noAssignInExpressions": "off", + "noArrayIndexKey": "off", + "noRedundantUseStrict": "off", + "noControlCharactersInRegex": "off", + "noExplicitAny": "off" } }, "ignore": [ @@ -78,4 +110,4 @@ "clientKind": "git", "useIgnoreFile": true } -} \ No newline at end of file +}