Skip to content

Rules ​

The vue-pug/* rules format and check the Pug inside <template lang="pug">. Your vue/* rules from eslint-plugin-vue keep working next to them; see vue/* rules on Pug.

✅ 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✅🔧

Released under the MIT License.