vue/html-comment-content-spacing
eslint-plugin-vue
Safe autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/html-comment-content-spacing": "error",
},
},
]; <!--comment-->
</template></template> <!-- comment -->
</template><!-- comment -->
<!--
comment
--> <!--*******
comment
*******-->
<!--*******✗ BAD*******-->
</template>Examples from the ESLint documentation.
vue/html-comment-content-spacing
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/html-comment-content-spacing": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce consistent newlines before and after dots in <template>
Enforce consistent spacing between keys and values in object literal properties in <template>
Enforce specific casing for custom event name
Enforce consistent spacing before and after keywords in <template>
Enforce specific casing for the component naming style in template