From d6b39c48f018144fe21682ca55078f0cc3ba47a9 Mon Sep 17 00:00:00 2001 From: Giovanni Ravalico <15946771+suddenlyGiovanni@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:21:21 +0200 Subject: [PATCH] chore(biome): update linter rules configurations Reorganized linter rules for clarity and added new categories like a11y and suspicious. Disabled specific rules such as noUndeclaredDependencies and noReactSpecificProps. Signed-off-by: Giovanni Ravalico <15946771+suddenlyGiovanni@users.noreply.github.com> --- biome.json | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/biome.json b/biome.json index 25e7132ea..84fc40870 100644 --- a/biome.json +++ b/biome.json @@ -26,24 +26,32 @@ "linter": { "enabled": true, "rules": { + "a11y": { + "useSemanticElements": "off" + }, "all": true, + "complexity": { + "noStaticOnlyClass": "off" + }, + "correctness": { + "noUndeclaredDependencies": "off" + }, "nursery": { "all": true, - "noUndeclaredDependencies": "off", - "noReactSpecificProps": "off", "useImportRestrictions": "off", - "useSemanticElements": "off" + "useExplicitFunctionReturnType": "off" + }, + "performance": { + "noBarrelFile": "warn", + "noReExportAll": "warn" }, "style": { "noNamespaceImport": "off", "useNamingConvention": "warn" }, - "complexity": { - "noStaticOnlyClass": "off" - }, - "performance": { - "noBarrelFile": "warn", - "noReExportAll": "warn" + "suspicious": { + "noReactSpecificProps": "off", + "noConsole": "warn" } } }, @@ -73,7 +81,6 @@ "enabled": false } }, - "overrides": [ { "include": ["packages/open-graph-protocol/**/*.ts"],