useVueVapor
Esta página aún no está disponible en tu idioma.
Summary
Section titled “Summary”- Rule available since:
v2.3.11 - Diagnostic Category:
lint/nursery/useVueVapor - This rule has an unsafe fix.
- The default severity of this rule is information.
- This rule belongs to the following domains:
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueVapor": "error" } } }}Description
Section titled “Description”Enforce opting in to Vue Vapor mode in <script setup> blocks.
Vue 3.6 introduces an opt-in “Vapor mode” for SFC <script setup> blocks:
<script setup vapor>.
Vapor mode only works for Vue Single File Components (SFCs) using <script setup>.
This rule reports <script setup> opening tags that are missing the vapor attribute.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”<script setup></script><script setup vapor></script>Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.