Skip to content

Conversation

@paescuj
Copy link
Contributor

@paescuj paescuj commented Oct 29, 2025

A small workaround to mitigate the type conflicts mentioned in #771 and #761.

The issue originates from the current incompatibility of ESLintUtils.RuleCreator from @typescript-eslint and defineConfig from eslint/config, see typescript-eslint/typescript-eslint#11543 for details.

By forcing the rules variable to be Record<string, Rule.RuleModule> we can make it compatible for now. I think that's acceptable as the rules itself are still type checked in their own modules.

The types of the configs remain detailed:
eslint vitest config example

Fixes #771, fixes #761

@veritem veritem merged commit 3005315 into vitest-dev:main Oct 29, 2025
5 checks passed
@paescuj paescuj deleted the fix/plugin-type branch October 29, 2025 18:05
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.

Support the new defineConfig Type definition changes in 1.3.12 break usage with extends

2 participants