We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff072fb commit 8734e4fCopy full SHA for 8734e4f
src/index.ts
@@ -6,11 +6,15 @@ const { name, version } =
6
// eslint-disable-next-line @typescript-eslint/no-require-imports
7
require('../package.json') as typeof import('../package.json');
8
9
+export const meta = { name, version };
10
+
11
+export const rules: Record<string, TSESLint.LooseRuleDefinition> = {
12
+ 'prefer-arrow-functions': preferArrowFunctions,
13
+};
14
15
const plugin: TSESLint.FlatConfig.Plugin = {
- meta: { name, version },
- rules: {
- 'prefer-arrow-functions': preferArrowFunctions,
- },
16
+ meta,
17
+ rules,
18
};
19
-export const { meta, rules } = plugin;
20
+export default plugin;
0 commit comments