Skip to content

script-utils/linters/eslint-rules/rule-tester-helper

Helper for bridging ESLint v10 rule types with @typescript-eslint/rule-tester.

FunctionDescription
toRuleTesterModuleCasts an ESLint v10 Rule.RuleModule to the type expected by @typescript-eslint/rule-tester. The types are incompatible at the type level because typescript-eslint hasn’t updated for ESLint v10 yet, but they are compatible at runtime.