Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 490 Bytes

indent.md

File metadata and controls

39 lines (28 loc) · 490 Bytes

Enforce consistent indentation (react-pug/indent)

This helps to be consistent with using indentation across the codebase.

Basically it requires 2 spaces always.

Rule Details

The following patterns are considered warnings:

pug`
 div
`
pug`
  div
     div
`

The following patterns are not considered warnings:

pug`div= 'Hello'`
pug`
  div
    div
`

When Not To Use It

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