mardi 24 novembre 2015

Is it possible to remove the "Expected '{' and instead saw" error from Ember Cli?

I've just started working with Ember cli, and every time I change a file, it spits out JSLint errors found in that file.

This is extremely helpful, except for the fact that it considers the following to be in valid:

var isValidJS = true;

if (isValidJS) console.log("This is totally valid JS");

It responds with this error: Expected '{' and instead saw 'console'

Is there anyway to silence only the errors specific to missing curly braces?




Aucun commentaire:

Enregistrer un commentaire