mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
chore: simplify lint and format config
This commit is contained in:
7 files changed
+9
-38
No files matched your search
@@ -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:
|
||||
|
||||
+1
-7
@@ -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/"]
|
||||
}
|
||||
+2
-19
@@ -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/**"]
|
||||
}
|
||||
Generated
+1
-1
@@ -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",
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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 {}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user