I am working with Eclipse and installed jshint for my application development with node.js, and now I am working on socket.io, where I have written following code.
io.sockets.in('room').emit('event_name', data);
here I am getting warrning from jshint as follows in Eclipse (Kepler).
Syntax error on token ".", Identifier expected after this token
How Do I solve this problem? Can someone tell me what the syntax error is here?
According to the JSHint docs: http://www.jshint.com/docs/
ignoreThis(); // jshint ignore:line
That should work. There may also be some other configuration to ignore certain errors. Obviously you wouldn't want to ignore all syntax errors...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.