@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 811 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Require switch-case statements to be exhaustive with union type.
*
* @see [switch-exhaustiveness-check](https://typescript-eslint.io/rules/switch-exhaustiveness-check)
*/
export type SwitchExhaustivenessCheckRuleConfig = RuleConfig<[]>;
/**
* Require switch-case statements to be exhaustive with union type.
*
* @see [switch-exhaustiveness-check](https://typescript-eslint.io/rules/switch-exhaustiveness-check)
*/
export interface SwitchExhaustivenessCheckRule {
/**
* Require switch-case statements to be exhaustive with union type.
*
* @see [switch-exhaustiveness-check](https://typescript-eslint.io/rules/switch-exhaustiveness-check)
*/
'@typescript-eslint/switch-exhaustiveness-check': SwitchExhaustivenessCheckRuleConfig;
}