From 283f17cccc2df96d7cd30fa258b71d70aeee52ce Mon Sep 17 00:00:00 2001 From: marocchino Date: Fri, 20 Jun 2025 12:00:27 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20biome=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biome.json | 77 ++++-------------------------------------------------- 1 file changed, 5 insertions(+), 72 deletions(-) diff --git a/biome.json b/biome.json index f518489..5727872 100644 --- a/biome.json +++ b/biome.json @@ -1,8 +1,7 @@ { - "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", + "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json", "files": { - "include": ["src/**/*.ts"], - "ignore": ["node_modules", "dist", "lib", "**/__tests__/**"] + "includes": ["src/**/*.ts"] }, "formatter": { "enabled": true, @@ -10,80 +9,14 @@ "indentStyle": "space", "indentWidth": 2, "lineEnding": "lf", - "lineWidth": 100, - "ignore": ["**/dist/", "**/lib/", "**/node_modules/"] + "lineWidth": 100 }, - "organizeImports": { "enabled": true }, "linter": { "enabled": true, "rules": { - "recommended": true, - "complexity": { - "noExtraBooleanCast": "error", - "noMultipleSpacesInRegularExpressionLiterals": "error", - "noStaticOnlyClass": "error", - "noUselessConstructor": "error", - "noUselessStringConcat": "error" - }, - "correctness": { - "noConstAssign": "error", - "noConstantCondition": "error", - "noEmptyCharacterClassInRegex": "error", - "noEmptyPattern": "error", - "noGlobalObjectCalls": "error", - "noInnerDeclarations": "error", - "noInvalidConstructorSuper": "error", - "noNewSymbol": "error", - "noSelfAssign": "error", - "noSwitchDeclarations": "error", - "noUndeclaredVariables": "error", - "noUnreachable": "error", - "noUnreachableSuper": "error", - "noUnsafeFinally": "error", - "noUnusedLabels": "error", - "noUnusedVariables": "error", - "useIsNan": "error", - "useYield": "error" - }, - "style": { - "noArguments": "error", - "noCommaOperator": "error", - "noInferrableTypes": "error", - "noNamespace": "error", - "noNonNullAssertion": "warn", - "noVar": "error", - "useConsistentArrayType": "error", - "useConst": "error", - "useForOf": "warn", - "useShorthandFunctionType": "warn", - "useSingleVarDeclarator": "error", - "useTemplate": "error" - }, - "suspicious": { - "noCatchAssign": "error", - "noClassAssign": "error", - "noCompareNegZero": "error", - "noConsole": "error", - "noControlCharactersInRegex": "error", - "noDebugger": "error", - "noDoubleEquals": "error", - "noDuplicateCase": "error", - "noDuplicateClassMembers": "error", - "noDuplicateObjectKeys": "error", - "noDuplicateParameters": "error", - "noEmptyBlockStatements": "error", - "noExplicitAny": "warn", - "noFallthroughSwitchClause": "error", - "noFunctionAssign": "error", - "noGlobalAssign": "error", - "noMisleadingInstantiator": "error", - "noRedeclare": "error", - "noSparseArray": "error", - "noUnsafeNegation": "error", - "useValidTypeof": "error" - } + "recommended": true }, - "ignore": ["**/dist/", "**/lib/", "**/node_modules/", "**/jest.config.js"] + "includes": ["vitest.config.ts", "src/**/*.ts", "__tests__/**/*.ts"] }, "javascript": { "formatter": {