Skip to content

Commit 031379b

Browse files
chore: fix type errors
1 parent b2b97de commit 031379b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/helpers/testers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { type RuleModule } from "@typescript-eslint/utils/ts-eslint";
2-
31
import { type CustomRuleModule } from "#eslint-plugin-functional/utils/rule";
42

53
import { getRuleTester } from "./RuleTester";
@@ -33,7 +31,7 @@ export function testRule<
3331
({ valid, invalid }) => {
3432
const ruleTester = getRuleTester(config);
3533

36-
ruleTester.run(ruleName, rule as RuleModule<TMessageIds, TOptions>, {
34+
ruleTester.run(ruleName, rule as any, {
3735
valid: processValidTestCase(valid),
3836
invalid: processInvalidTestCase(invalid),
3937
});

tests/helpers/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
import { type NamedCreateRuleMeta } from "@typescript-eslint/utils/eslint-utils";
1111

1212
import {
13-
type CustomRuleModule,
1413
createRuleUsingFunction,
14+
type CustomRuleModule,
1515
type RuleFunctionsMap,
1616
} from "#eslint-plugin-functional/utils/rule";
1717

@@ -88,7 +88,7 @@ export function createDummyRule(
8888
context: Readonly<TSESLint.RuleContext<"generic", any>>,
8989
) => RuleFunctionsMap<any, "generic", any>,
9090
): CustomRuleModule<string, [boolean, ...unknown[]]> {
91-
const meta: NamedCreateRuleMeta<"generic"> = {
91+
const meta: NamedCreateRuleMeta<"generic", []> = {
9292
type: "suggestion",
9393
docs: {
9494
description: "rule used in testing",

0 commit comments

Comments
 (0)