Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (14 loc) · 456 Bytes

jsx-no-undef.md

File metadata and controls

23 lines (14 loc) · 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.