UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

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