Skip to content

Change Request: Remove eslintrc support #223

@lumirlumir

Description

@lumirlumir

As of the upcoming ESLint v10, it appears we will drop support for the eslintrc mode from core.

As part of that process, I'm proposing to remove eslintrc support from the create-config package.

There appears to be eslintrc-related logic throughout the create-config package:

const type = argv.includes("--eslintrc") ? "eslintrc" : "flat";

import { FlatCompat } from "@eslint/eslintrc";

// install peer dependencies - it's needed for most eslintrc-style shared configs.
const peers = await fetchPeerDependencies(config.packageName);

} else if (config.type === "eslintrc") {
needCompatHelper = true;
const shorthandName = getShorthandName(packageName, "eslint-config");
exportContent += ` compat.extends("${shorthandName}"),\n`;
}

this.result.devDependencies.push("@eslint/eslintrc", "@eslint/js");

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions