Menu

#13 Support for if, else, else if without block

open
nobody
None
5
2014-11-14
2014-11-14
TheWizEd
No

I'm new to javascript and jslint but found jslint to be very helpful in flushing out simple typos which could be potential errors. I would like the following to be added.

1) Support for else if. jslint expects a block {} after an else.
2) Support for single line commands following if, else if or else. jslint expects a block {}.
3) Support for single line if (e.g. if( x == 10 ) return; jslint expects a block (.e.g. if( x == 10 ) { return; }).
4) Support single parameter for parseInt. Get error messaage "Missing radix parameter".
5) For some reason get an error message "Unecessary 'else' after disruption." (e.g. if( x == 10 ) { return x; } else if {} else {})

Discussion


Log in to post a comment.