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;
How to use
To enable this rule in the CLI or using the config file, you can use:
bash
oxlint --deny no-undef
json
{
"rules": {
"no-undef": "error"
}
}