Skip to content

feat: Look up flat/ config alternatives in defineConfig#167

Merged
mdjermanovic merged 1 commit intomainfrom
define-config-flat
Mar 18, 2025
Merged

feat: Look up flat/ config alternatives in defineConfig#167
mdjermanovic merged 1 commit intomainfrom
define-config-flat

Conversation

@nzakas
Copy link
Copy Markdown
Member

@nzakas nzakas commented Mar 17, 2025

Prerequisites checklist

What is the purpose of this pull request?

Update defineConfig() to search for flat configs in plugins when a string is used in extends.

What changes did you make? (Give an overview)

  • Updated defineConfig() so it "plugin/config" is eslintrc, then it search for "plugin/flat/config". It throws an error if that config isn't found or is also eslintrc.
  • Added tests.

Related Issues

Refs eslint/eslint#19513

Is there anything you'd like reviewers to focus on?

Copy link
Copy Markdown
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit 0e1a2e0 into main Mar 18, 2025
18 checks passed
@mdjermanovic mdjermanovic deleted the define-config-flat branch March 18, 2025 12:26
@github-project-automation github-project-automation Bot moved this from Implementing to Complete in Triage Mar 18, 2025
@github-actions github-actions Bot mentioned this pull request Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

2 participants