vue/arrow-spacing
eslint-plugin-vue
Safe autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/arrow-spacing": "error",
},
},
];Enforce consistent spacing before and after the arrow in arrow functions in <template>
No code example for this rule
The linters' documentation does not include one we could extract.
vue/arrow-spacing
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/arrow-spacing": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce consistent spacing before and after the arrow in arrow functions
Enforce consistent spacing inside array brackets in <template>
Disallow or enforce spaces inside of blocks after opening block and before closing block in <template>
Require template literals instead of string concatenation in <template>
Enforce line breaks after opening and before closing block-level tags
Require or disallow method and property shorthand syntax for object literals in <template>