UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 609 B
import type { RuleConfig } from '../rule-config'; /** * Disallow reassigning exceptions in `catch` clauses. * * @see [no-ex-assign](https://eslint.org/docs/latest/rules/no-ex-assign) */ export type NoExAssignRuleConfig = RuleConfig<[]>; /** * Disallow reassigning exceptions in `catch` clauses. * * @see [no-ex-assign](https://eslint.org/docs/latest/rules/no-ex-assign) */ export interface NoExAssignRule { /** * Disallow reassigning exceptions in `catch` clauses. * * @see [no-ex-assign](https://eslint.org/docs/latest/rules/no-ex-assign) */ 'no-ex-assign': NoExAssignRuleConfig; }