From 484490917dae2104a88438eeca94ee6e1d9f0c55 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 22 Oct 2023 08:22:31 +1300 Subject: [PATCH] feat: include plugin `meta` information for ESLint v9 --- 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),