vue/valid-v-memo
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-memo": "error",
},
},
]; <div v-memo />
<div v-memo:aaa="[x]" />
<div v-memo.bbb="[x]" />
<div v-memo="{ x }" />
<div v-for="i in items">
<div v-memo="[i]" />
</div>
</template><div v-memo="[x]" />Examples from the ESLint documentation.
vue/valid-v-memo
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-memo": "error",
},
},
];Oxlint does not have this rule.
nursery/useVueValidVMemo
nursery · since 2.6.4
{
"linter": {
"rules": {
"nursery": {
"useVueValidVMemo": "error"
}
}
}
}