chore: strengthen backend eslint profile

This commit is contained in:
2026-09-28 16:37:01 +03:00
committed by ksv741
parent 53b2794963
commit a970eaaf7a
179 changed files with 4485 additions and 2716 deletions
+10 -2
View File
@@ -6,6 +6,7 @@ const { randomUUID } = require('node:crypto');
const image = process.argv[2];
assert.ok(image, 'Pass a built backend image reference');
const name = `wealthledger-smoke-${randomUUID()}`;
// eslint-disable-next-line sonarjs/no-os-command-from-path -- Developer-only command uses the operator PATH and fixed executable/arguments; no request input.
const docker = (...args) => execFileSync('docker', args, { encoding: 'utf8' }).trim();
const environment = [
'-e', 'DATABASE_URL=file:/data/wealthledger.db',
@@ -64,6 +65,13 @@ async function ready() {
`);
console.log('PASS image: fresh/existing migration, non-root read-only runtime, auth, persistence, proto assets');
} finally {
try { docker('rm', '-f', name); } finally { docker('volume', 'rm', name); }
try {
docker('rm', '-f', name);
} finally {
docker('volume', 'rm', name);
}
}
})().catch((error) => { console.error(error); process.exitCode = 1; });
})().catch((error) => {
console.error(error);
process.exitCode = 1;
});