da6b3ce Apr 27, 2016
@yannickcr @ljharb
24 lines (14 sloc) 456 Bytes

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

This rule helps 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.