Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 509 Bytes

no-broken-template.md

File metadata and controls

39 lines (29 loc) · 509 Bytes

Disallow broken template (react-pug/no-broken-template)

It points to places where Pug template is incorrect.

Rule Details

The following patterns are considered warnings:

pug`
  each i in 1, 2, 3]
`
pug`
  Component(
    iam-object={ a: 1, b: 2
  )
`

The following patterns are not considered warnings:

pug`p= variable`
pug`
  Component(
    object={a: 1, b: 2}
  )
`

When Not To Use It

If you are not using Pug then you can disable this rule.