vuejs / eslint-plugin-vue

Official ESLint plugin for Vue.js
https://eslint.vuejs.org/
MIT License
4.47k stars 667 forks source link

fix: type declarations for configs #2566

Closed thor-juhasz closed 1 month ago

thor-juhasz commented 1 month ago

Adds proper types for the configs (in the yet unreleased index.d.ts).

If this PR gets rejected, note that the configs key is still incorrectly typed with the current index.d.ts file.

If only a fix for that is wanted, without the types for the configs themselves, consider this:

  configs: {
-    [name in keyof ConfigName]: any
+    [name in ConfigName]: any
  }