Skip to content

noVueVOnNumberValues

biome.json
{
"linter": {
"rules": {
"nursery": {
"noVueVOnNumberValues": "error"
}
}
}
}

Disallow deprecated number modifiers on Vue v-on directives.

Vue 3 no longer supports using key code numbers as event modifiers.

<input v-on:keyup.13="submit" />
code-block.vue:1:19 lint/nursery/noVueVOnNumberValues ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Number modifiers are deprecated on Vue v-on directives.

> 1 │ <input v-on:keyup.13=“submit” />
^^
2 │

Vue 3 no longer supports key code modifiers, so this event modifier has no effect.

Use a named key modifier, such as enter, or handle the key code inside the event handler.

This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information.

<input @keyup.13="submit" />
code-block.vue:1:15 lint/nursery/noVueVOnNumberValues ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Number modifiers are deprecated on Vue v-on directives.

> 1 │ <input @keyup.13=“submit” />
^^
2 │

Vue 3 no longer supports key code modifiers, so this event modifier has no effect.

Use a named key modifier, such as enter, or handle the key code inside the event handler.

This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information.

<input v-on:keyup.enter="submit" />
<input @keyup.enter="submit" />