UNPKG

eslint-plugin-switch-statement

Version:

Rules for properly handling switch statements, including ensuring that appropriate exhaustive case handling.

14 lines (13 loc) 591 B
import { ESLintUtils } from "@typescript-eslint/utils"; export declare const DEFAULT_ASSERT_NEVER_FN_NAME = "assertUnreachable"; export declare const RULE_NAME = "require-appropriate-default-case"; export type MessageIds = keyof typeof messages; export type Options = [{ unreachableDefaultCaseAssertionFunctionName: string; }]; declare const messages: { addDefaultCase: string; considerExhaustiveSwitch: string; }; declare const _default: ESLintUtils.RuleModule<"addDefaultCase" | "considerExhaustiveSwitch", Options, unknown, ESLintUtils.RuleListener>; export default _default;