Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 724 Bytes

pug-lint.md

File metadata and controls

31 lines (22 loc) · 724 Bytes

Inherit pug-lint to validate pug (experimental)

This rule applies pug-lint to pug templates in js.

See pug-lint project

Rule Details

The following patterns are considered warnings:

/*eslint react-pug/pug-lint: ["error", { "requireSpaceAfterCodeOperator": true }]*/
pug`div=greeting`
/*eslint react-pug/pug-lint: ["error", { "disallowTrailingSpaces": true }]*/
pug`div: img() `

The following patterns are not considered warnings:

/*eslint react-pug/pug-lint: ["error", { "requireSpaceAfterCodeOperator": true }]*/
pug`div= greeting`
/*eslint react-pug/pug-lint: ["error", { "disallowTrailingSpaces": true }]*/
pug`div: img()`