UNPKG

eslint-plugin-exception-handling

Version:

💣 Lints unhandled functions that might throw errors. For JavaScript/TypeScript eslint.

11 lines (10 loc) • 400 B
import { RuleModule } from "@typescript-eslint/utils/ts-eslint"; import { ESLint } from "eslint"; import { rules } from "./rules/index.js"; type RuleKey = keyof typeof rules; interface Plugin extends Omit<ESLint.Plugin, "rules"> { rules: Record<RuleKey, RuleModule<string>>; } export declare const name = "eslint-plugin-exception-handling"; export declare const plugin: Plugin; export { rules };