Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 547 Bytes

no-undef.md

File metadata and controls

33 lines (21 loc) · 547 Bytes

Disallow undeclared variables in Pug (react-pug/no-undef)

This rule helps locate potential ReferenceErrors resulting from misspellings or missing components.

Rule Details

The following patterns are considered warnings:

pug`h1= title`
pug`Hello(name="John")`

The following patterns are not considered warnings:

var title = 'My Title'

pug`h1= title`
var Hello = require('./Hello')

pug`Hello(name="John")`

When Not To Use It

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