From f9a890f367b7ffcd457479d9cda05c1fa139f879 Mon Sep 17 00:00:00 2001 From: Dominik Stumpf Date: Wed, 10 Jul 2024 14:37:57 +0200 Subject: [PATCH] Revert "ci: add eslint ispired rules to biome" This reverts commit 0c43559a61c2b6859b01666fad2fc2c2e8fb4de4. --- biome.json | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/biome.json b/biome.json index fca92f1047..479bd96aaf 100644 --- a/biome.json +++ b/biome.json @@ -1,9 +1,5 @@ { "$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, @@ -13,6 +9,10 @@ "lineWidth": 85, "attributePosition": "auto" }, + "files": { + "include": ["src", "cypress"], + "ignore": ["node_modules", ".next", "public", ".out"] + }, "organizeImports": { "enabled": true }, "linter": { "enabled": true, @@ -26,48 +26,49 @@ "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", - "noUnusedVariables": "warn", - "useArrayLiterals": "off" + "noUnreachableSuper": "off" }, - "nursery": { "useSortedClasses": "info" }, "style": { - "noArguments": "error", "noInferrableTypes": "error", "noNamespace": "error", "noNonNullAssertion": "warn", - "noVar": "error", "useAsConstAssertion": "error", "useBlockStatements": "off", - "useConst": "error", - "useDefaultParameterLast": "error" + "useDefaultParameterLast": "error", + "noArguments": "error", + "noVar": "error", + "useConst": "error" }, "suspicious": { - "noConsoleLog": "warn", "noDuplicateClassMembers": "error", - "noDuplicateObjectKeys": "off", - "noDuplicateParameters": "off", "noEmptyBlockStatements": "warn", "noExplicitAny": "off", "noExtraNonNullAssertion": "error", - "noFunctionAssign": "off", - "noImportAssign": "off", "noMisleadingInstantiator": "error", "noRedeclare": "error", - "noUnsafeNegation": "off", "useAwait": "off", - "useGetterReturn": "off", "useNamespaceKeyword": "error", + "noDuplicateObjectKeys": "off", + "noDuplicateParameters": "off", + "noFunctionAssign": "off", + "noImportAssign": "off", + "noUnsafeNegation": "off", + "useGetterReturn": "off", "useValidTypeof": "off" + }, + "nursery": { + "useSortedClasses": "info" } } },