Skip to content

eslint/no-undef Nursery

What it does

Disallow the use of undeclared variables.

Why is this bad?

It is most likely a potential ReferenceError caused by a misspelling of a variable or parameter name.

Example

javascript
var foo = someFunction();
var bar = a + 1;

References

Released under the MIT License.