Joachim Van Herwegen 6248ed0938 refactor: Replace linting configurations
The previous package was outdated, preventing us from updating TS.
This one also lints YAML and JSON,
and applies many more rules to the test files,
explaining all the changes in this PR.
2023-11-02 09:49:17 +01:00

13 lines
447 B
JavaScript
Executable File

#!/usr/bin/env node
const { AppRunner } = require('..');
// Attaching a logger to the uncaughtExceptionMonitor event,
// such that the default uncaughtException behavior still occurs.
process.on('uncaughtExceptionMonitor', (err, origin) => {
// eslint-disable-next-line no-console
console.error(`Process is halting due to an ${origin} with error ${err.message}`);
});
// eslint-disable-next-line no-sync
new AppRunner().runCliSync(process);