vue/valid-v-once
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-once": "error",
},
},
]; <div v-once:aaa />
<div v-once.bbb />
<div v-once="ccc" />
</template><div v-once />Examples from the ESLint documentation.
vue/valid-v-once
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-once": "error",
},
},
];Oxlint does not have this rule.
correctness/useVueValidVOnce
correctness · since 2.3.11
{
"linter": {
"rules": {
"correctness": {
"useVueValidVOnce": "error"
}
}
}
}