Skip to content

Commit

Permalink
feat: include plugin meta information for ESLint v9 (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Oct 26, 2023
1 parent 55ad336 commit 4d57146
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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';

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

export = {
meta: { name: packageName, version: packageVersion },
configs: {
all: createConfig(allRules),
recommended: createConfig(recommendedRules),
Expand Down

0 comments on commit 4d57146

Please sign in to comment.