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.
| Rule | Description | ✅ | 🔧 |
|---|---|---|---|
vue-pug/attribute-commas | require or disallow commas between attributes in Pug attribute blocks | ✅ | 🔧 |
vue-pug/attribute-equals-spacing | disallow spaces around the = and != of Pug attributes | ✅ | 🔧 |
vue-pug/attribute-parens-newline | enforce line breaks after ( and before ) of multiline Pug attribute blocks | ✅ | 🔧 |
vue-pug/attribute-parens-spacing | enforce consistent spacing inside the parentheses of Pug attribute blocks | ✅ | 🔧 |
vue-pug/attribute-quotes | enforce a consistent quote style for Pug attribute values | ✅ | 🔧 |
vue-pug/implicit-div | enforce or forbid the tag name div before class and id shorthands | ✅ | 🔧 |
vue-pug/indent | enforce consistent indentation in Pug templates | ✅ | 🔧 |
vue-pug/max-attributes-per-line | enforce a maximum number of attributes per line in Pug attribute blocks | ✅ | 🔧 |
vue-pug/no-multi-spaces | disallow multiple spaces between attributes in Pug attribute blocks | ✅ | 🔧 |
vue-pug/no-pug-control-flow | disallow Pug compile-time constructs (control flow, code, mixins, #{} interpolation, includes) | ||
vue-pug/prefer-shorthand | enforce or forbid .class / #id shorthands for static class and id attributes | ✅ | 🔧 |
vue-pug/self-closing | enforce or forbid the self-closing / of a tag | ✅ | 🔧 |