Skip to content

यह पेज एक अनुवाद है। यदि यह अंग्रेज़ी पेज से अलग है, तो अंग्रेज़ी पेज ही सही है। English

Rules ​

vue-pug/* rules <template lang="pug"> के अंदर के Pug को format और जाँचते हैं। eslint-plugin-vue के आपके vue/* rules उनके साथ काम करते रहते हैं; देखें Pug पर vue/* rules।

✅ enabled in configs.recommended (at warn). 🔧 fixable with --fix.

RuleDescription✅🔧
vue-pug/attribute-commasrequire or disallow commas between attributes in Pug attribute blocks✅🔧
vue-pug/attribute-equals-spacingdisallow spaces around the = and != of Pug attributes✅🔧
vue-pug/attribute-parens-newlineenforce line breaks after ( and before ) of multiline Pug attribute blocks✅🔧
vue-pug/attribute-parens-spacingenforce consistent spacing inside the parentheses of Pug attribute blocks✅🔧
vue-pug/attribute-quotesenforce a consistent quote style for Pug attribute values✅🔧
vue-pug/implicit-divenforce or forbid the tag name div before class and id shorthands✅🔧
vue-pug/indentenforce consistent indentation in Pug templates✅🔧
vue-pug/max-attributes-per-lineenforce a maximum number of attributes per line in Pug attribute blocks✅🔧
vue-pug/no-multi-spacesdisallow multiple spaces between attributes in Pug attribute blocks✅🔧
vue-pug/no-pug-control-flowdisallow Pug compile-time constructs (control flow, code, mixins, #{} interpolation, includes)
vue-pug/prefer-shorthandenforce or forbid .class / #id shorthands for static class and id attributes✅🔧
vue-pug/self-closingenforce or forbid the self-closing / of a tag✅🔧

MIT License के अंतर्गत जारी।