Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Apr 4, 2024
1 parent d7fc095 commit 7196d93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ export class RuleTester extends TSESLint.RuleTester {
super(option)
}

/**
* Since we can't override the original `run` method, we have to create a new one that accepts our custom rule module with custom meta.
*/
run$<MessageIds extends string, Options extends Readonly<unknown[]>>(
ruleName: string,
rule: RuleModuleWithCustomMeta<MessageIds, Options>,
Expand Down

0 comments on commit 7196d93

Please sign in to comment.