Skip to content

Commit 7c19d01

Browse files
marekdedicJamieMason
authored andcommitted
fix: change export to fix #50
Closes #50 Closes #54
1 parent b53da74 commit 7c19d01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TSESTree } from '@typescript-eslint/types';
2-
import { RuleContext } from '@typescript-eslint/utils/ts-eslint';
2+
import { TSESLint } from '@typescript-eslint/utils';
33

44
export type AnyFunctionBody = TSESTree.BlockStatement | TSESTree.Expression;
55
export type AnyFunction = TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.ArrowFunctionExpression;
@@ -13,7 +13,7 @@ export type Options = [ActualOptions];
1313
export interface Scope {
1414
isTsx: boolean;
1515
options: ActualOptions;
16-
sourceCode: RuleContext<MessageId, Options>['sourceCode'];
16+
sourceCode: TSESLint.RuleContext<MessageId, Options>['sourceCode'];
1717
}
1818

1919
export interface ActualOptions {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ const plugin: TSESLint.FlatConfig.Plugin = {
1313
},
1414
};
1515

16-
export default plugin;
16+
export const { meta, rules } = plugin;

0 commit comments

Comments
 (0)