$ the-wire · showcase
eslint-plugin-vue stops trusting registrations Vue can't resolve
By RepoJournal · Filed · About Vue.js · Composed from the cited sources · methodology
Both fixes are accuracy fixes for tooling that was quietly agreeing with code Vue would reject at runtime: the lint rule now resolves component names the way Vue's resolveAsset does, and compiler-sfc now follows re-exports to the type declaration they point at.
fix(no-unused-components): match registered names the way Vue resolves components vuejs/eslint-plugin-vue
vue/no-unused-components treated a myComp registration as used by <MyComp>, which Vue cannot resolve: resolveAsset only tries the used name, its camelized form, and its capitalized camelized form. The rule now counts a registration as used only if its name matches one of those three forms, so <my-comp>, <myComp> and <MyComp> still find a MyComp registration, while <MyComp> no longer silences th...
fix(compiler-sfc): follow re-exports to the real declaration vuejs/core
compiler-sfc now follows re-exports through export * barrels and renamed exports to the real declaration, including when generic type arguments are supplied. That fixes type resolution for re-exported types used alongside local imports or in global declarations, and prop metadata generation for destructured defaults typed by re-exported generics.