Skip to content

Conversation

@joshkel
Copy link

@joshkel joshkel commented Nov 13, 2025

Since March of this year, ESLint supports and recommends using extends for flat configurations (instead of having to manually spread the pieces of the configuration.

@joshkel joshkel force-pushed the patch-1 branch 2 times, most recently from dde6f9f to 9c7615d Compare November 13, 2025 16:00
@G-Rath
Copy link
Collaborator

G-Rath commented Nov 13, 2025

It looks like that is a feature of the defineConfig helper, not actually ESLint itself - personally I think I'd prefer to stick with what we have for now since the helpers are still evolving and it keeps this example consistent with others

@joshkel
Copy link
Author

joshkel commented Nov 13, 2025

Thanks for the correction, @G-Rath. I failed to realize that extends requires defineConfig.

defineConfig is recommended throughout the ESLint documentation; from what I've been able to follow of ESLint 9.x's development, it's quite stable. I've updated the remaining examples, but, of course, it's up to you all whether you want to update this plugin's docs to match.

Since [March of this year][1], ESLint supports and [recommends][2] using
`defineConfig` and `extends` for flat configurations (instead of having
to manually spread the pieces of the configuration).

[1]: https://eslint.org/blog/2025/03/flat-config-extends-define-config-global-ignores/
[2]: https://eslint.org/docs/latest/use/configure/configuration-files#extending-configurations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants