Skip to content

Commit

Permalink
fix: change export to fix #50
Browse files Browse the repository at this point in the history
Closes #50
Closes #54
  • Loading branch information
marekdedic authored and JamieMason committed Jan 13, 2025
1 parent b53da74 commit 7c19d01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TSESTree } from '@typescript-eslint/types';
import { RuleContext } from '@typescript-eslint/utils/ts-eslint';
import { TSESLint } from '@typescript-eslint/utils';

export type AnyFunctionBody = TSESTree.BlockStatement | TSESTree.Expression;
export type AnyFunction = TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.ArrowFunctionExpression;
Expand All @@ -13,7 +13,7 @@ export type Options = [ActualOptions];
export interface Scope {
isTsx: boolean;
options: ActualOptions;
sourceCode: RuleContext<MessageId, Options>['sourceCode'];
sourceCode: TSESLint.RuleContext<MessageId, Options>['sourceCode'];
}

export interface ActualOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const plugin: TSESLint.FlatConfig.Plugin = {
},
};

export default plugin;
export const { meta, rules } = plugin;

0 comments on commit 7c19d01

Please sign in to comment.