Avoid `process.exit` in application code
Do not call `process.exit` from application logic; reserve termination for CLI entrypoints.
#Metadata
#Why it matters
Forced process termination bypasses graceful shutdown, in-flight request draining, and cleanup hooks.
#Remediation
Propagate errors to the caller or use graceful shutdown hooks instead of calling `process.exit`.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.runtime.no-process-exit.rule.yaml.