/** * Flags catch blocks whose only action is to return a falsy/empty value * with no logging. Hides bugs and produces silent data loss. * * Example violation: * try { ... } catch (e) { return null; } * * Acceptable: * try { ... } catch (e) { logger.warn('msg', { error: e }); return null; } * try { ... } catch (e) { throw new HttpErrors.X('...'); } */ import type { Rule } from 'eslint'; declare const rule: Rule.RuleModule; export default rule;