Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include plugin meta information for ESLint v9 #1454

Merged
merged 1 commit into from Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions 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';

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