vue-pug/no-multi-spaces
Pug 속성 블록에서 속성 사이의 연속된 공백을 금지합니다.
✅ configs.recommended에서 켜져 있습니다(warn). 🔧 --fix로 고칠 수 있습니다.
Pug 템플릿 안에서 vue/no-multi-spaces를 대체합니다.
규칙 상세
같은 블록의 두 속성 사이에서 한 줄에 공백이나 탭이 둘 이상 이어지면 보고하며, fix는 이를 공백 하나로 바꿉니다. 쉼표는 앞 속성에 붙어 있으므로, 간격에서 마지막 쉼표 뒤의 공백만 측정합니다.
속성 값, 괄호 옆의 공백(vue-pug/attribute-parens-spacing 참고), 태그 뒤의 텍스트는 절대 건드리지 않습니다.
잘못된 예
vue
<template lang="pug">
a(href="/" target="_blank") Home
</template>vue
<template lang="pug">
input(type="text", name="q")
</template>올바른 예
vue
<template lang="pug">
a(href="/" target="_blank") Home
</template>vue
<template lang="pug">
p(title="a b") spaced text
</template>옵션
없음.