diff --git a/eslint.config.test.js b/eslint.config.test.js index 446d496..b1595ca 100644 --- a/eslint.config.test.js +++ b/eslint.config.test.js @@ -1,6 +1,7 @@ // @ts-check import tseslint from "typescript-eslint"; +import { plugin as ex } from "./dist/index.mjs"; import config from "./eslint.config.js"; const ignores = [ @@ -12,4 +13,11 @@ const ignores = [ "vitest.config.js", ]; -export default tseslint.config(...config.map((x) => ({ ...x, ignores }))); +export default tseslint.config(...config.map((x) => ({ ...x, ignores })), { + plugins: { ex }, + rules: { + "ex/no-unhandled": "error", + "ex/might-throw": "warn", + "ex/use-error-cause": "warn", + }, +});