Skip to content

이 페이지는 번역본입니다. 영어 페이지와 내용이 다르면 영어 페이지가 기준입니다. English

규칙 ​

vue-pug/* 규칙은 <template lang="pug"> 안의 Pug를 포맷하고 검사합니다. eslint-plugin-vue의 vue/* 규칙도 함께 계속 동작합니다. Pug에서의 vue/* 규칙을 참고하세요.

✅ 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 라이선스로 배포됩니다.