vue-pug/attribute-equals-spacing
Pug attributes के = और != के आसपास spaces मना करें।
✅ configs.recommended में चालू (warn पर)। 🔧 --fix से ठीक होने योग्य।
Pug templates के अंदर vue/no-spaces-around-equal-signs-in-attribute की जगह लेता है।
Rule का विवरण
Attribute के नाम और उसके = / != के बीच, और operator तथा value के बीच का whitespace खाली होना चाहिए। Fix उसे हटा देता है। जिस अंतराल में line break हो उसे छोड़ दिया जाता है।
गलत
vue
<template lang="pug">
a(href = "/") Home
</template>vue
<template lang="pug">
input(:value= "query" @input ="update")
</template>सही
vue
<template lang="pug">
a(href="/") Home
</template>vue
<template lang="pug">
div(v-html!="html" :title="title")
</template>Options
कोई नहीं।