New: add no-undefined rule (fixes #1020)

Fixes #1020.
I think this should be off by default but turned on for the ESLint repo.