useVueConsistentDefinePropsDeclaration triggers on array pushing
Author: destroyer22719Created Jan 4, 2026Updated Sep 29, 2026
LabelsS-Bug-confirmedL-HTMLD-Vue
Environment information
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"nursery": {
"useVueConsistentDefinePropsDeclaration": "error"
}
},<script setup lang="ts">
import { ref } from 'vue';
const myArray = ref<string[]>([])
const selectModel = (x: string) => {
myArray.value.push(x);
};
</script>
<template>
</template>
<style scoped>
</style>Triggers this error: src/App.vue:8:2 lint/nursery/useVueConsistentDefinePropsDeclaration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ This defineProps declaration uses runtime declaration.
7 │ const selectModel = (x: string) => {
8 │ myArray.value.push(x); │ ^^^^^^^^^^^^^^^^^^^^^ 9 │ }; 10 │
ℹ It should be defined using type declaration like defineProps<...>().
ℹ This rule belongs to the nursery group, which mea
Rule name
lint/nursery/useVueConsistentDefinePropsDeclaration
Playground link
Expected result
That rule should not trigger because we didn't even use defineProps
Code of Conduct
- I agree to follow Biome's Code of Conduct
Source: biomejs/biome