fix: update trunk configuration and improve code formatting in EditRom component

This commit is contained in:
zurdi
2025-06-16 09:34:23 +00:00
parent 15305fe418
commit 01692e70d1
2 changed files with 15 additions and 15 deletions

View File

@@ -2,43 +2,43 @@
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.22.15
version: 1.24.0
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.6.8
ref: v1.7.0
uri: https://github.com/trunk-io/plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
- go@1.21.0
- node@18.20.5
- node@22.16.0
- python@3.12.2
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
disabled:
- pyright
enabled:
- markdownlint@0.44.0
- eslint@9.26.0
- markdownlint@0.45.0
- eslint@9.28.0
- actionlint@1.7.7
- bandit@1.8.3
- black@25.1.0
- checkov@3.2.424
- checkov@3.2.441
- git-diff-check
- isort@6.0.1
- mypy@1.15.0
- mypy@1.16.0
- osv-scanner@2.0.2
- oxipng@9.1.5
- prettier@3.5.3
- ruff@0.11.10
- ruff@0.11.13
- shellcheck@0.10.0
- shfmt@3.6.0
- svgo@3.3.2
- taplo@0.9.3
- trivy@0.62.1
- trufflehog@3.88.29
- trivy@0.63.0
- trufflehog@3.89.1
- yamllint@1.37.1
ignore:
- linters: [ALL]

View File

@@ -48,7 +48,7 @@ const computedAspectRatio = computed(() => {
return parseFloat(ratio.toString());
});
const missingCoverImage = computed(() =>
getMissingCoverImage(rom.value?.name || rom.value?.fs_name || "")
getMissingCoverImage(rom.value?.name || rom.value?.fs_name || ""),
);
// Functions
@@ -87,7 +87,7 @@ async function handleRomUpdate(
removeCover?: boolean;
unmatch?: boolean;
},
successMessage: string
successMessage: string,
) {
show.value = false;
emitter?.emit("showLoadingDialog", { loading: true, scrim: true });
@@ -129,7 +129,7 @@ async function uploadManuals() {
})
.then((responses: PromiseSettledResult<unknown>[]) => {
const successfulUploads = responses.filter(
(d) => d.status == "fulfilled"
(d) => d.status == "fulfilled",
);
const failedUploads = responses.filter((d) => d.status == "rejected");
@@ -170,7 +170,7 @@ async function unmatchRom() {
if (!rom.value) return;
await handleRomUpdate(
{ rom: rom.value, unmatch: true },
"Rom unmatched successfully"
"Rom unmatched successfully",
);
}
@@ -186,7 +186,7 @@ async function updateRom() {
await handleRomUpdate(
{ rom: rom.value, removeCover: removeCover.value },
"Rom updated successfully!"
"Rom updated successfully!",
);
}