From 1253b908f592eed4a8fc2be7bb38cb388a00dffe Mon Sep 17 00:00:00 2001 From: rare-magma Date: Sat, 31 Aug 2024 15:21:36 +0200 Subject: [PATCH] ci: remove redundant config Signed-off-by: rare-magma --- biome.json | 88 ++------------------------------------------------- src/index.tsx | 1 - 2 files changed, 2 insertions(+), 87 deletions(-) diff --git a/biome.json b/biome.json index e9a3daa..af69429 100644 --- a/biome.json +++ b/biome.json @@ -40,72 +40,7 @@ }, "style": { "noDefaultExport": "error", - "noImplicitBoolean": "error", - "noRestrictedGlobals": { - "level": "error", - "options": { - "deniedGlobals": [ - "addEventListener", - "blur", - "close", - "closed", - "confirm", - "defaultStatus", - "defaultstatus", - "event", - "external", - "find", - "focus", - "frameElement", - "frames", - "history", - "innerHeight", - "innerWidth", - "length", - "location", - "locationbar", - "menubar", - "moveBy", - "moveTo", - "name", - "onblur", - "onerror", - "onfocus", - "onload", - "onresize", - "onunload", - "open", - "opener", - "opera", - "outerHeight", - "outerWidth", - "pageXOffset", - "pageYOffset", - "parent", - "print", - "removeEventListener", - "resizeBy", - "resizeTo", - "screen", - "screenLeft", - "screenTop", - "screenX", - "screenY", - "scroll", - "scrollbars", - "scrollBy", - "scrollTo", - "scrollX", - "scrollY", - "self", - "status", - "statusbar", - "stop", - "toolbar", - "top" - ] - } - } + "noImplicitBoolean": "error" }, "suspicious": { "noEmptyBlockStatements": "error", @@ -126,24 +61,5 @@ "attributePosition": "auto" } }, - "overrides": [ - { - "include": ["**/*.ts?(x)"], - "linter": { - "rules": { - "complexity": { "noUselessConstructor": "warn" }, - "correctness": { - "noInvalidUseBeforeDeclaration": "warn", - "noUndeclaredVariables": "off", - "noUnusedVariables": "warn", - "useArrayLiterals": "off" - }, - "suspicious": { - "noDuplicateClassMembers": "off", - "noRedeclare": "warn" - } - } - } - } - ] + "overrides": [] } diff --git a/src/index.tsx b/src/index.tsx index 5dde792..b9fdeb2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -6,7 +6,6 @@ import { App } from "./App"; const updateSW = registerSW({ onNeedRefresh() { - // biome-ignore lint/style/noRestrictedGlobals: if (confirm("A new version of guitos is available. Update?")) { updateSW(true); }