Vize

Vapor rules

Follow each rule for purpose, severity, scope, configuration, and Bad/Good examples. The complete catalogue keeps all examples and current support boundaries on one page.

Configure lint.vize.rules and run vp run lint with the Vite+ helper. Check each page for type-aware, filename, or additional-configuration prerequisites.

Rule Examples Purpose
script/no-get-current-instance Bad · Good Disallow getCurrentInstance() in Vapor mode (returns null)
script/no-next-tick Bad · Good Disallow nextTick() usage in Vapor-oriented components
script/no-options-api Bad · Good Disallow Options API patterns in Vapor mode
vapor/no-inline-template Bad · Good Disallow deprecated inline-template attribute
vapor/no-vue-lifecycle-events Bad · Good Disallow @vue:xxx per-element lifecycle events (not supported in Vapor)
vapor/prefer-static-class Bad · Good Prefer static class over dynamic class binding for string literals
vapor/require-vapor-attribute Bad · Good Suggest adding vapor attribute to script setup

All rules · Rule Options · ESLint migration map · Project checks