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:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
# The layerchart Svelte build fails on Linux, so CI runs on Windows.
|
# The layerchart Svelte build fails on Linux, so CI runs on Windows.
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
@@ -32,8 +30,6 @@ jobs:
|
|||||||
uses: ./.github/actions/run-lint
|
uses: ./.github/actions/run-lint
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -48,8 +44,6 @@ jobs:
|
|||||||
uses: ./.github/actions/run-unit-tests
|
uses: ./.github/actions/run-unit-tests
|
||||||
|
|
||||||
build-and-smoke:
|
build-and-smoke:
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
needs: [lint, unit-tests]
|
needs: [lint, unit-tests]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
|
|||||||
+1
-7
@@ -1,10 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||||
"ignorePatterns": [
|
"ignorePatterns": ["package-lock.json", "src/public/"]
|
||||||
"betterseqtaplus-safari/",
|
|
||||||
"coverage/",
|
|
||||||
"dist/",
|
|
||||||
"package-lock.json",
|
|
||||||
"src/public/"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
+2
-19
@@ -1,33 +1,16 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||||
"plugins": ["typescript", "unicorn", "oxc", "import"],
|
|
||||||
"categories": {
|
"categories": {
|
||||||
"correctness": "error"
|
"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": {
|
"rules": {
|
||||||
"no-unused-vars": [
|
"no-unused-vars": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"ignoreRestSiblings": true,
|
|
||||||
"argsIgnorePattern": "^_",
|
"argsIgnorePattern": "^_",
|
||||||
"varsIgnorePattern": "^_",
|
"ignoreRestSiblings": true
|
||||||
"caughtErrors": "none"
|
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"import/default": "off"
|
|
||||||
},
|
},
|
||||||
"ignorePatterns": ["src/public/**"]
|
"ignorePatterns": ["src/public/**"]
|
||||||
}
|
}
|
||||||
Generated
+1
-1
@@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@crxjs/vite-plugin": "^3.0.0",
|
"@crxjs/vite-plugin": "^3.0.0",
|
||||||
"@jest/globals": "30.5.2",
|
"@jest/globals": "^30.5.2",
|
||||||
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
||||||
"@tailwindcss/forms": "^0.5.11",
|
"@tailwindcss/forms": "^0.5.11",
|
||||||
"@tailwindcss/postcss": "^4.3.3",
|
"@tailwindcss/postcss": "^4.3.3",
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@crxjs/vite-plugin": "^3.0.0",
|
"@crxjs/vite-plugin": "^3.0.0",
|
||||||
"@jest/globals": "30.5.2",
|
"@jest/globals": "^30.5.2",
|
||||||
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
||||||
"@tailwindcss/forms": "^0.5.11",
|
"@tailwindcss/forms": "^0.5.11",
|
||||||
"@tailwindcss/postcss": "^4.3.3",
|
"@tailwindcss/postcss": "^4.3.3",
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export function formatHotkeyForDisplay(hotkeyString: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return parts.join(isMac ? " " : "+");
|
return parts.join(isMac ? " " : "+");
|
||||||
} catch (error) {
|
} catch {
|
||||||
console.warn("Invalid hotkey string:", hotkeyString);
|
console.warn("Invalid hotkey string:", hotkeyString);
|
||||||
return "Ctrl+K";
|
return "Ctrl+K";
|
||||||
}
|
}
|
||||||
@@ -125,7 +125,7 @@ export function isValidHotkey(hotkeyString: string): boolean {
|
|||||||
try {
|
try {
|
||||||
const parsed = parseHotkey(hotkeyString);
|
const parsed = parseHotkey(hotkeyString);
|
||||||
return parsed.key.length > 0 && isAllowedHotkeyKey(parsed.key);
|
return parsed.key.length > 0 && isAllowedHotkeyKey(parsed.key);
|
||||||
} catch (error) {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -810,7 +810,7 @@ export function init() {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (_) {}
|
} catch {}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -827,7 +827,7 @@ export function init() {
|
|||||||
if (ckeditor?.instances?.editor1) {
|
if (ckeditor?.instances?.editor1) {
|
||||||
try {
|
try {
|
||||||
ckeditor.instances.editor1.focus();
|
ckeditor.instances.editor1.focus();
|
||||||
} catch (_) {}
|
} catch {}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user