hapijs / eslint-config-hapi

Shareable ESLint config for the hapi ecosystem
Other
22 stars 23 forks source link

Catch undeclared variables #45

Closed sfabriece closed 8 years ago

sfabriece commented 8 years ago

If I create a funtion on a non declared variable, I don't get an error. Is it possible to add for that?

cjihrig commented 8 years ago

@geek, it looks like the no-undef rule has been turned off since I originally split this out of lab. Any idea why? If there isn't a good reason, I think we should try turning it on, with the { "typeof": false } option set.

geek commented 8 years ago

@cjihrig I don't see a reason to keep it off, maybe it was just a bad copy-paste

cjihrig commented 8 years ago

OK. Well @sfabriece would you care to make a PR :-)

cjihrig commented 8 years ago

Closed via #47

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.