diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 97fe3f4a..1b75a9fe 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -15,8 +15,6 @@ concurrency: jobs: lint: - permissions: - contents: read # The layerchart Svelte build fails on Linux, so CI runs on Windows. runs-on: windows-latest defaults: @@ -32,8 +30,6 @@ jobs: uses: ./.github/actions/run-lint unit-tests: - permissions: - contents: read runs-on: windows-latest defaults: run: @@ -48,8 +44,6 @@ jobs: uses: ./.github/actions/run-unit-tests build-and-smoke: - permissions: - contents: read needs: [lint, unit-tests] runs-on: windows-latest defaults: diff --git a/.oxfmtrc.json b/.oxfmtrc.json index 69db2843..80986415 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -1,10 +1,4 @@ { "$schema": "./node_modules/oxfmt/configuration_schema.json", - "ignorePatterns": [ - "betterseqtaplus-safari/", - "coverage/", - "dist/", - "package-lock.json", - "src/public/" - ] + "ignorePatterns": ["package-lock.json", "src/public/"] } diff --git a/.oxlintrc.json b/.oxlintrc.json index 4ae67196..2777ea82 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -1,33 +1,16 @@ { "$schema": "./node_modules/oxlint/configuration_schema.json", - "plugins": ["typescript", "unicorn", "oxc", "import"], "categories": { "correctness": "error" }, - "env": { - "builtin": true, - "browser": true, - "node": true - }, - "globals": { - "__ENABLE_GH_RELEASE_UPDATE_CHECK__": "readonly", - "__GH_RELEASE_REPO__": "readonly", - "__UPDATE_CHANNEL__": "readonly", - "__BUILD_LABEL__": "readonly", - "__GOOGLE_OAUTH_CLIENT_ID__": "readonly", - "__OUTLOOK_OAUTH_CLIENT_ID__": "readonly" - }, "rules": { "no-unused-vars": [ "error", { - "ignoreRestSiblings": true, "argsIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "caughtErrors": "none" + "ignoreRestSiblings": true } - ], - "import/default": "off" + ] }, "ignorePatterns": ["src/public/**"] } diff --git a/package-lock.json b/package-lock.json index bb1cd02f..eac056e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@crxjs/vite-plugin": "^3.0.0", - "@jest/globals": "30.5.2", + "@jest/globals": "^30.5.2", "@sveltejs/vite-plugin-svelte": "^7.3.1", "@tailwindcss/forms": "^0.5.11", "@tailwindcss/postcss": "^4.3.3", diff --git a/package.json b/package.json index 8070450f..0376b668 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ }, "devDependencies": { "@crxjs/vite-plugin": "^3.0.0", - "@jest/globals": "30.5.2", + "@jest/globals": "^30.5.2", "@sveltejs/vite-plugin-svelte": "^7.3.1", "@tailwindcss/forms": "^0.5.11", "@tailwindcss/postcss": "^4.3.3", diff --git a/src/plugins/built-in/globalSearch/src/utils/hotkeyUtils.ts b/src/plugins/built-in/globalSearch/src/utils/hotkeyUtils.ts index 16ec89f8..f9050fa7 100644 --- a/src/plugins/built-in/globalSearch/src/utils/hotkeyUtils.ts +++ b/src/plugins/built-in/globalSearch/src/utils/hotkeyUtils.ts @@ -88,7 +88,7 @@ export function formatHotkeyForDisplay(hotkeyString: string): string { } return parts.join(isMac ? " " : "+"); - } catch (error) { + } catch { console.warn("Invalid hotkey string:", hotkeyString); return "Ctrl+K"; } @@ -125,7 +125,7 @@ export function isValidHotkey(hotkeyString: string): boolean { try { const parsed = parseHotkey(hotkeyString); return parsed.key.length > 0 && isAllowedHotkeyKey(parsed.key); - } catch (error) { + } catch { return false; } } diff --git a/src/plugins/monofile.ts b/src/plugins/monofile.ts index b79d11c8..cc5db1c0 100644 --- a/src/plugins/monofile.ts +++ b/src/plugins/monofile.ts @@ -810,7 +810,7 @@ export function init() { } return true; } - } catch (_) {} + } catch {} return false; }; @@ -827,7 +827,7 @@ export function init() { if (ckeditor?.instances?.editor1) { try { ckeditor.instances.editor1.focus(); - } catch (_) {} + } catch {} } };