hapijs / eslint-config-hapi

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

validation aware eslint-config #46

Closed sfabriece closed 8 years ago

sfabriece commented 8 years ago

I was wondering if it is remotely possible to make eslint validation aware. Meaning that If I create a Joi validation for a route, then in the handler, I try accessing a property on the request object that is not in the validation. I would get an error.

Even better, to make eslint aware of all hapi properties.

cjihrig commented 8 years ago

Sorry, but I don't think you could reliably do this with ESLint.

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.