Enhance ESLint configuration to include support for .mjs and .cjs file types. Update ignored files patterns to ensure proper linting of project files. Refactor Vue component templates for improved readability and maintainability, including consistent formatting and structure across various components. Update error handling in save functions to prevent silent failures.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 52s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 52s
This commit is contained in:
@@ -83,11 +83,11 @@ export default defineEventHandler(async (event) => {
|
||||
// ggf. inkonsistente Inhalte ausgeliefert (Browser meldet Partial Transfer).
|
||||
// Daher: nach erfolgreichem Schreiben alte Varianten entfernen.
|
||||
for (const ext of ['.gz', '.br']) {
|
||||
try { await fs.unlink(`${targetPath}${ext}`) } catch (_e3) {}
|
||||
try { await fs.unlink(`${targetPath}${ext}`) } catch (_e3) { /* no-op */ }
|
||||
}
|
||||
} catch (e) {
|
||||
// best-effort cleanup
|
||||
try { await fs.unlink(tmpPath) } catch (_e2) {}
|
||||
try { await fs.unlink(tmpPath) } catch (_e2) { /* no-op */ }
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user