I'm using nodejs, express.
My code was...
var option = { name: 'Tobi' };
app.render('email', { option });
and I deployed to production env.
it threw error SyntaxError: Unexpected token }
and my lovely node server died... :scream:
anyway, I fixed it. like this...
var option = { name: 'Tobi' };
app.render('email', option);
Buuuuut,
in my local env, I couldn't catch that. I know it was my mistake.
How can I catch the syntax error in local environment?
I thought it can be done by jshint. but i couldn't find the appropriate option from jshint.
I need your help. THX