Skip to content

Commit

Permalink
Pass Node to RuleContext
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Sep 26, 2024
1 parent 44a5660 commit c5a743b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ export interface RuleDefinition<
Code extends SourceCode = SourceCode,
RuleOptions = unknown[],
Visitor extends RuleVisitor = RuleVisitor,
Node = unknown,
> {
/**
* The meta information for the rule.
Expand All @@ -445,7 +446,7 @@ export interface RuleDefinition<
* @param context The rule context.
* @returns The rule visitor.
*/
create(context: RuleContext<LangOptions, Code, RuleOptions>): Visitor;
create(context: RuleContext<LangOptions, Code, RuleOptions, Node>): Visitor;
}

//------------------------------------------------------------------------------
Expand Down

0 comments on commit c5a743b

Please sign in to comment.