Skip to content

Commit 4d57146

Browse files
authored
feat: include plugin meta information for ESLint v9 (#1454)
1 parent 55ad336 commit 4d57146

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { readdirSync } from 'fs';
22
import { join, parse } from 'path';
33
import type { TSESLint } from '@typescript-eslint/utils';
4+
import {
5+
name as packageName,
6+
version as packageVersion,
7+
} from '../package.json';
48
import globals from './globals.json';
59
import * as snapshotProcessor from './processors/snapshot-processor';
610

@@ -56,6 +60,7 @@ const createConfig = (rules: Record<string, TSESLint.Linter.RuleLevel>) => ({
5660
});
5761

5862
export = {
63+
meta: { name: packageName, version: packageVersion },
5964
configs: {
6065
all: createConfig(allRules),
6166
recommended: createConfig(recommendedRules),

0 commit comments

Comments
 (0)