UNPKG

@datadayrepos/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 881 B
import type { RuleConfig } from '../rule-config'; /** * Require that `process.exit()` expressions use the same code path as `throw`. * * @see [process-exit-as-throw](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/process-exit-as-throw.md) */ export type ProcessExitAsThrowRuleConfig = RuleConfig<[]>; /** * Require that `process.exit()` expressions use the same code path as `throw`. * * @see [process-exit-as-throw](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/process-exit-as-throw.md) */ export interface ProcessExitAsThrowRule { /** * Require that `process.exit()` expressions use the same code path as `throw`. * * @see [process-exit-as-throw](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/process-exit-as-throw.md) */ 'n/process-exit-as-throw': ProcessExitAsThrowRuleConfig; }