#8682·biome

useVueConsistentDefinePropsDeclaration triggers on array pushing

Author: destroyer22719Created Jan 4, 2026Updated Sep 29, 2026
LabelsS-Bug-confirmedL-HTMLD-Vue

Environment information

json
	"linter": {
		"enabled": true,
		"rules": {
			"recommended": true,
			"nursery": {
				"useVueConsistentDefinePropsDeclaration": "error"
			}
		},
xml
<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

https://biomejs.dev/playground/?code=PABzAGMAcgBpAHAAdAAgAHMAZQB0AHUAcAAgAGwAYQBuAGcAPQAiAHQAcwAiAD4ACgBpAG0AcABvAHIAdAAgAHsAIAByAGUAZgAgAH0AIABmAHIAbwBtACAAJwB2AHUAZQAnADsACgAKAGMAbwBuAHMAdAAgAG0AeQBBAHIAcgBhAHkAIAA9ACAAcgBlAGYAPABzAHQAcgBpAG4AZwBbAF0APgAoAFsAXQApAAoACgBjAG8AbgBzAHQAIABzAGUAbABlAGMAdABNAG8AZABlAGwAIAA9ACAAKAB4ADoAIABzAHQAcgBpAG4AZwApACAAPQA%2BACAAewAKAAkAbQB5AEEAcgByAGEAeQAuAHYAYQBsAHUAZQAuAHAAdQBzAGgAKAB4ACkAOwAKAH0AOwAKADwALwBzAGMAcgBpAHAAdAA%2BAAoACgA8AHQAZQBtAHAAbABhAHQAZQA%2BAAoAPAAvAHQAZQBtAHAAbABhAHQAZQA%2BAAoACgA8AHMAdAB5AGwAZQAgAHMAYwBvAHAAZQBkAD4ACgA8AC8AcwB0AHkAbABlAD4ACgA%3D&language=vue

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