-
Notifications
You must be signed in to change notification settings - Fork 92
Closed
Description
Configuring the plugin by
// eslint.config.js
import vitest from 'eslint-plugin-vitest';
export default [
vitest.configs.recommended
];
results in the following error:
ESLint: 8.56.0
A config object has a "plugins" key defined as an array of strings.
Flat config requires "plugins" to be an object in this form:
{
plugins: {
vitest: pluginObject
}
}
I think the issue is caused by the createConfig function. A possible workaround it to tweak the returned config object in the following way:
export default [
{ ...vitest.configs.recommended, plugins: { vitest } }
];
tobiasdiezmaxdzin, alistairstead and luffynando
Metadata
Metadata
Assignees
Labels
No labels