From 4d571467631a407a038d5b4d61bc45f4622954f1 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 27 Oct 2023 09:34:04 +1300 Subject: [PATCH] feat: include plugin `meta` information for ESLint v9 (#1454) --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index d3af4248b..f56603f16 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,10 @@ import { readdirSync } from 'fs'; import { join, parse } from 'path'; import type { TSESLint } from '@typescript-eslint/utils'; +import { + name as packageName, + version as packageVersion, +} from '../package.json'; import globals from './globals.json'; import * as snapshotProcessor from './processors/snapshot-processor'; @@ -56,6 +60,7 @@ const createConfig = (rules: Record) => ({ }); export = { + meta: { name: packageName, version: packageVersion }, configs: { all: createConfig(allRules), recommended: createConfig(recommendedRules),