Skip to content

feat: defineConfig() supports "flat/" config prefix - #19533

Merged
mdjermanovic merged 1 commit into
mainfrom
issue19513
Mar 18, 2025
Merged

mdjermanovic merged 1 commit into
mainfrom
issue19513

Conversation

@nzakas

@nzakas nzakas commented Mar 18, 2025

Copy link
Copy Markdown
Member

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[x] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)

  • Upgraded @eslint/config-helpers
  • Updated documentation for plugins to describe how to include both eslintrc and flat config format configs

fixes #19513

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

@nzakas
nzakas requested a review from a team as a code owner March 18, 2025 15:37
@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Mar 18, 2025
@eslint-github-bot eslint-github-bot Bot added the feature This change adds a new feature to ESLint label Mar 18, 2025
@netlify

netlify Bot commented Mar 18, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit f4877a1
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/67d9933415f1c800083823bd
😎 Deploy Preview https://deploy-preview-19533--docs-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nzakas nzakas moved this from Needs Triage to Implementing in Triage Mar 18, 2025
@mdjermanovic mdjermanovic added the accepted There is consensus among the team that this change meets the criteria for inclusion label Mar 18, 2025

@mdjermanovic mdjermanovic left a comment

Copy link
Copy Markdown
Member

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 833c4a3 into main Mar 18, 2025
@mdjermanovic
mdjermanovic deleted the issue19513 branch March 18, 2025 16:58
@github-project-automation github-project-automation Bot moved this from Implementing to Complete in Triage Mar 18, 2025
vaernion pushed a commit to Arbeidstilsynet/brevgen2 that referenced this pull request Dec 3, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@eslint/js](https://eslint.org) ([source](https://github.com/eslint/eslint/tree/HEAD/packages/js)) | devDependencies | minor | [`9.22.0` -> `9.23.0`](https://renovatebot.com/diffs/npm/@eslint%2fjs/9.22.0/9.23.0) |
| [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | devDependencies | minor | [`9.22.0` -> `9.23.0`](https://renovatebot.com/diffs/npm/eslint/9.22.0/9.23.0) |

---

### Release Notes

<details>
<summary>eslint/eslint (@&#8203;eslint/js)</summary>

### [`v9.23.0`](https://github.com/eslint/eslint/releases/tag/v9.23.0)

[Compare Source](eslint/eslint@v9.22.0...v9.23.0)

##### Features

-   [`557a0d2`](eslint/eslint@557a0d2) feat: support TypeScript syntax in no-useless-constructor ([#&#8203;19535](eslint/eslint#19535)) (Josh Goldberg ✨)
-   [`8320241`](eslint/eslint@8320241) feat: support TypeScript syntax in `default-param-last` ([#&#8203;19431](eslint/eslint#19431)) (Josh Goldberg ✨)
-   [`833c4a3`](eslint/eslint@833c4a3) feat: defineConfig() supports "flat/" config prefix ([#&#8203;19533](eslint/eslint#19533)) (Nicholas C. Zakas)
-   [`4a0df16`](eslint/eslint@4a0df16) feat: circular autofix/conflicting rules detection ([#&#8203;19514](eslint/eslint#19514)) (Milos Djermanovic)
-   [`be56a68`](eslint/eslint@be56a68) feat: support TypeScript syntax in `class-methods-use-this` ([#&#8203;19498](eslint/eslint#19498)) (Josh Goldberg ✨)

##### Bug Fixes

-   [`0e20aa7`](eslint/eslint@0e20aa7) fix: move deprecated `RuleContext` methods to subtype ([#&#8203;19531](eslint/eslint#19531)) (Francesco Trotta)
-   [`cc3bd00`](eslint/eslint@cc3bd00) fix: reporting variable used in catch block in `no-useless-assignment` ([#&#8203;19423](eslint/eslint#19423)) (Tanuj Kanti)
-   [`d46ff83`](eslint/eslint@d46ff83) fix: `no-dupe-keys` false positive with proto setter ([#&#8203;19508](eslint/eslint#19508)) (Milos Djermanovic)
-   [`e732773`](eslint/eslint@e732773) fix: navigation of search results on pressing Enter ([#&#8203;19502](eslint/eslint#19502)) (Tanuj Kanti)
-   [`f4e9c5f`](eslint/eslint@f4e9c5f...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion feature This change adds a new feature to ESLint

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

Change Request: Better support plugins with both eslintrc and flat configs

2 participants