Skip to content

Commit

Permalink
fix: fixed test config
Browse files Browse the repository at this point in the history
  • Loading branch information
Akronae committed Sep 21, 2024
1 parent 0ca84a7 commit 6287127
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion eslint.config.test.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand All @@ -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",
},
});

0 comments on commit 6287127

Please sign in to comment.