vitest-dev / eslint-plugin-vitest

eslint plugin for vitest
MIT License
325 stars 44 forks source link

Declaration file missing plugin configs #427

Closed henrist closed 6 months ago

henrist commented 6 months ago

407 changed plugin.configs to be specified using Object.assign. This will not change the type of plugin, so it don't include the assigned configs. As of 0.5.2 the configs property is an empty object, preventing the use of this for type-checked ESLint config files.

I notice the ESLint documentation suggests this approach, but the ESLint project itself don't use TypeScript or emit declaration files, so I assume it's just an oversight.

I'll create a PR to fix this.