Skip to content

Commit

Permalink
chore: fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Mar 22, 2024
1 parent b2b97de commit 031379b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tests/helpers/testers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { type RuleModule } from "@typescript-eslint/utils/ts-eslint";

import { type CustomRuleModule } from "#eslint-plugin-functional/utils/rule";

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

ruleTester.run(ruleName, rule as RuleModule<TMessageIds, TOptions>, {
ruleTester.run(ruleName, rule as any, {
valid: processValidTestCase(valid),
invalid: processInvalidTestCase(invalid),
});
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
import { type NamedCreateRuleMeta } from "@typescript-eslint/utils/eslint-utils";

import {
type CustomRuleModule,
createRuleUsingFunction,
type CustomRuleModule,
type RuleFunctionsMap,
} from "#eslint-plugin-functional/utils/rule";

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

0 comments on commit 031379b

Please sign in to comment.