vue/padding-line-between-blocks
eslint-plugin-vue
Safe autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/padding-line-between-blocks": "error",
},
},
];<template>
<div></div>
</template>
<script>
export default {}
</script>
<style></style><template>
<div></div>
</template>
<script>
export default {}
</script>
<style></style><template>
<div></div>
</template>
<script>
export default {}
</script>
<style></style><template>
<div></div>
</template>
<script>
export default {}
</script>
<style></style><template>
<div></div>
</template>
<script>
export default {}
</script>
<style></style><template>
<div></div>
</template>
<script>
export default {}
</script>
<style></style>Examples from the ESLint documentation.
vue/padding-line-between-blocks
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/padding-line-between-blocks": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce consistent linebreak style for operators in <template>
Require quotes around object literal property names in <template>
Enforce placing object properties on separate lines in <template>
Enforce consistent spacing inside parentheses in <template>
Enforce consistent spacing inside braces in <template>
Require spacing around infix operators in <template>