vue/block-tag-newline
eslint-plugin-vue
Safe autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/block-tag-newline": "error",
},
},
];<template>
<input></template>
<script>
export default {}</script><template>
<input>
</template>
<script>export default {
}</script><template>
<input>
</template>
<script>
export default {
}
</script><template><input></template>
<script>
export default {}
</script><template><input></template>
<script>
export default {
}
</script><template>
<input>
</template>
<script>
export default {
}
</script>Examples from the ESLint documentation.
vue/block-tag-newline
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/block-tag-newline": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow or enforce spaces inside of blocks after opening block and before closing block in <template>
Enforce consistent brace style for blocks in <template>
Enforce consistent spacing before and after the arrow in arrow functions in <template>
Enforce consistent spacing inside array brackets in <template>
Enforce consistent spacing before and after commas in <template>