Vize

Ecosystem and Nuxt rules

Checks for Nuxt, Vue Router, Pinia, Vue I18n, Vue Test Utils and Void Vue projects.

Each rule page shows a failing example, a passing example, and the configuration that turns the rule on.

Stricter presets (13)

Only in opinionated, nuxt or ecosystem. The Presets column lists which.

Rule What it checks Presets Auto-fix
ecosystem/nuxt-prefer-nuxt-link Prefer NuxtLink for internal application links. nuxt
ecosystem/pinia-prefer-store-to-refs Prefer storeToRefs() when destructuring Pinia stores. ecosystem
ecosystem/router-link-require-to Require a to target on RouterLink and NuxtLink components. ecosystem
ecosystem/void-link-require-href Require href on Void Vue Link components. ecosystem
ecosystem/void-link-valid-method Validate static Void Vue Link method props. ecosystem
ecosystem/vue-i18n-no-missing-key Report static vue-i18n keys that are absent from local SFC messages. ecosystem
ecosystem/vue-router-prefer-named-link Prefer named route objects over static path strings in RouterLink. ecosystem
ecosystem/vue-router-prefer-named-push Prefer named route objects for Vue Router programmatic navigation. ecosystem
ecosystem/vue-test-utils-no-html-snapshot Avoid snapshotting wrapper.html() in Vue Test Utils tests. ecosystem
nuxt/no-nuxt-config-test-key Disallow setting test key in Nuxt config. nuxt
nuxt/no-page-meta-runtime-values Disallow runtime context values inside definePageMeta at the eager level, which is extracted into a separate chunk at build time and runs before component setup. nuxt
nuxt/nuxt-config-keys-order Prefer recommended order of Nuxt config properties. nuxt ✓
nuxt/prefer-import-meta Prefer using import.meta.* over process.*. nuxt ✓

Rules overview · Rule options · Migrating from ESLint