diff --git a/biome.json b/biome.json index 479bd96aaf..fca92f1047 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,9 @@ { "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", + "files": { + "ignore": ["node_modules", ".next", "public", ".out"], + "include": ["src", "cypress"] + }, "formatter": { "enabled": true, "formatWithErrors": false, @@ -9,10 +13,6 @@ "lineWidth": 85, "attributePosition": "auto" }, - "files": { - "include": ["src", "cypress"], - "ignore": ["node_modules", ".next", "public", ".out"] - }, "organizeImports": { "enabled": true }, "linter": { "enabled": true, @@ -26,49 +26,48 @@ "useLiteralKeys": "error" }, "correctness": { - "noInvalidUseBeforeDeclaration": "off", - "noPrecisionLoss": "error", - "noUnusedVariables": "off", - "useArrayLiterals": "off", "noConstAssign": "off", "noGlobalObjectCalls": "off", "noInvalidConstructorSuper": "off", + "noInvalidUseBeforeDeclaration": "off", "noNewSymbol": "off", + "noPrecisionLoss": "error", "noSetterReturn": "off", "noUndeclaredVariables": "off", "noUnreachable": "off", - "noUnreachableSuper": "off" + "noUnreachableSuper": "off", + "noUnusedVariables": "warn", + "useArrayLiterals": "off" }, + "nursery": { "useSortedClasses": "info" }, "style": { + "noArguments": "error", "noInferrableTypes": "error", "noNamespace": "error", "noNonNullAssertion": "warn", + "noVar": "error", "useAsConstAssertion": "error", "useBlockStatements": "off", - "useDefaultParameterLast": "error", - "noArguments": "error", - "noVar": "error", - "useConst": "error" + "useConst": "error", + "useDefaultParameterLast": "error" }, "suspicious": { + "noConsoleLog": "warn", "noDuplicateClassMembers": "error", + "noDuplicateObjectKeys": "off", + "noDuplicateParameters": "off", "noEmptyBlockStatements": "warn", "noExplicitAny": "off", "noExtraNonNullAssertion": "error", - "noMisleadingInstantiator": "error", - "noRedeclare": "error", - "useAwait": "off", - "useNamespaceKeyword": "error", - "noDuplicateObjectKeys": "off", - "noDuplicateParameters": "off", "noFunctionAssign": "off", "noImportAssign": "off", + "noMisleadingInstantiator": "error", + "noRedeclare": "error", "noUnsafeNegation": "off", + "useAwait": "off", "useGetterReturn": "off", + "useNamespaceKeyword": "error", "useValidTypeof": "off" - }, - "nursery": { - "useSortedClasses": "info" } } },