useVueConsistentVOnStyle
このコンテンツはまだ日本語訳がありません。
Summary
Section titled “Summary”- Diagnostic Category:
lint/nursery/useVueConsistentVOnStyle - This rule has an unsafe fix.
- The default severity of this rule is information.
- This rule belongs to the following domains:
- Sources:
- Same as
vue/v-on-style
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueConsistentVOnStyle": "error" } } }}Description
Section titled “Description”Enforce a consistent style for v-on in Vue templates.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”<div v-on:click="onClick" /><div @click="onClick" />Options
Section titled “Options”Configures the preferred directive style. Accepts "shorthand" or "longhand". Default: "shorthand".
{ "linter": { "rules": { "nursery": { "useVueConsistentVOnStyle": { "options": { "style": "longhand" } } } } }}Invalid
Section titled “Invalid”<div @click="onClick" /><div v-on:click="onClick" />Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.