useVueValidVOn
Summary
Section titled “Summary”- Rule available since:
v2.3.6 - Diagnostic Category:
lint/nursery/useVueValidVOn - This rule doesn’t have a fix.
- The default severity of this rule is information.
- This rule belongs to the following domains:
- Sources:
- Same as
vue/valid-v-on
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueValidVOn": "error" } } }}Description
Section titled “Description”Enforce valid v-on directives with proper arguments, modifiers, and handlers.
This rule reports v-on directives in the following cases:
- The directive does not have an event name. E.g.
<div v-on="foo"></div> - The directive has invalid modifiers. E.g.
<div v-on:click.bogus="foo"></div> - The directive is missing a handler expression. E.g.
<div v-on:click></div>
Examples
Section titled “Examples”Invalid
Section titled “Invalid”<Foo v-on /><Foo v-on:click="foo" />Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.