File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- import { type RuleModule } from "@typescript-eslint/utils/ts-eslint" ;
2
-
3
1
import { type CustomRuleModule } from "#eslint-plugin-functional/utils/rule" ;
4
2
5
3
import { getRuleTester } from "./RuleTester" ;
@@ -33,7 +31,7 @@ export function testRule<
33
31
( { valid, invalid } ) => {
34
32
const ruleTester = getRuleTester ( config ) ;
35
33
36
- ruleTester . run ( ruleName , rule as RuleModule < TMessageIds , TOptions > , {
34
+ ruleTester . run ( ruleName , rule as any , {
37
35
valid : processValidTestCase ( valid ) ,
38
36
invalid : processInvalidTestCase ( invalid ) ,
39
37
} ) ;
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import {
10
10
import { type NamedCreateRuleMeta } from "@typescript-eslint/utils/eslint-utils" ;
11
11
12
12
import {
13
- type CustomRuleModule ,
14
13
createRuleUsingFunction ,
14
+ type CustomRuleModule ,
15
15
type RuleFunctionsMap ,
16
16
} from "#eslint-plugin-functional/utils/rule" ;
17
17
@@ -88,7 +88,7 @@ export function createDummyRule(
88
88
context : Readonly < TSESLint . RuleContext < "generic" , any > > ,
89
89
) => RuleFunctionsMap < any , "generic" , any > ,
90
90
) : CustomRuleModule < string , [ boolean , ...unknown [ ] ] > {
91
- const meta : NamedCreateRuleMeta < "generic" > = {
91
+ const meta : NamedCreateRuleMeta < "generic" , [ ] > = {
92
92
type : "suggestion" ,
93
93
docs : {
94
94
description : "rule used in testing" ,
You can’t perform that action at this time.
0 commit comments