Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 464 Bytes

jsx-no-undef.md

File metadata and controls

23 lines (14 loc) · 464 Bytes

Disallow undeclared variables in JSX (jsx-no-undef)

This rules can help you locate potential ReferenceErrors resulting from misspellings or missing components.

Rule Details

The following patterns are considered warnings:

<Hello name="John" />;

The following patterns are not considered warnings:

var Hello = require('./Hello');

<Hello name="John" />;

When Not To Use It

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