vue/key-spacing
eslint-plugin-vue
Safe autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/key-spacing": "error",
},
},
];Enforce consistent spacing between keys and values in object literal properties in <template>
No code example for this rule
The linters' documentation does not include one we could extract.
vue/key-spacing
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/key-spacing": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce consistent spacing between keys and values in object literal properties
Enforce unified spacing in HTML comments
Enforce consistent spacing before and after keywords in <template>
Enforce consistent newlines before and after dots in <template>
Enforce specific casing for custom event name