eslint-plugin-exception-handling
Version:
💣 Lints unhandled functions that might throw errors. For JavaScript/TypeScript eslint.
24 lines (23 loc) • 703 B
JavaScript
import { rules } from "./rules/index.js";
import noUnhandled from "./rules/no-unhandled/no-unhandled.js";
import mightThrow from "./rules/might-throw/might-throw.js";
import useErrorCause from "./rules/use-error-cause/use-error-cause.js";
export const name = "eslint-plugin-exception-handling";
export const plugin = {
meta: {
name,
version: "1.0.0",
},
configs: {
recommended: {
plugins: [name],
rules: {
[`${name}/${noUnhandled.name}`]: "error",
[`${name}/${mightThrow.name}`]: "off",
[`${name}/${useErrorCause.name}`]: "warn",
},
},
},
rules,
};
export { rules };