Skip to content

Commit 8734e4f

Browse files
committed
fix: export meta and rules directly to prevent undefined inference
Closes #55
1 parent ff072fb commit 8734e4f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/index.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ const { name, version } =
66
// eslint-disable-next-line @typescript-eslint/no-require-imports
77
require('../package.json') as typeof import('../package.json');
88

9+
export const meta = { name, version };
10+
11+
export const rules: Record<string, TSESLint.LooseRuleDefinition> = {
12+
'prefer-arrow-functions': preferArrowFunctions,
13+
};
14+
915
const plugin: TSESLint.FlatConfig.Plugin = {
10-
meta: { name, version },
11-
rules: {
12-
'prefer-arrow-functions': preferArrowFunctions,
13-
},
16+
meta,
17+
rules,
1418
};
1519

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

0 commit comments

Comments
 (0)