| 25 | } |
| 26 | |
| 27 | interface EslintCompatRuleTester { |
| 28 | run( |
| 29 | name: string, |
| 30 | rule: Rule.RuleModule, |
| 31 | tests: { |
| 32 | valid: Array<string | ValidTestCase> |
| 33 | invalid: Array<InvalidTestCase> |
| 34 | } |
| 35 | ): void |
| 36 | } |
| 37 | |
| 38 | // @ts-expect-error oxlint RuleTester accepts ESLint Rule.RuleModule in eslintCompat mode |
| 39 | export const ruleTester: EslintCompatRuleTester = new RuleTester({ |
no outgoing calls
no test coverage detected