vue/v-for-delimiter-style
eslint-plugin-vue
Safe autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/v-for-delimiter-style": "error",
},
},
]; <div v-for="x of xs" />
</template> <div v-for="x in xs" />
</template><div v-for="x in xs" /><div v-for="x of xs" />Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
vue/v-for-delimiter-style
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/v-for-delimiter-style": "error",
},
},
];Oxlint does not have this rule.
nursery/useVueConsistentVForDelimiter
nursery · since 2.6.5
{
"linter": {
"rules": {
"nursery": {
"useVueConsistentVForDelimiter": "error"
}
}
}
}Enforce writing style for handlers in v-on directives
Enforce adding type declarations to object props