I am using Eclipse JavaScript code formatting (Indigo version) and using the jshint-eclipse plugin with white: true to check if the code matches.
Eclipse code formatting and the JSHint plugin conflict with the declaration format of an anonymous function. Formatting JavaScript code formats anonymous functions as follows:
var f1 = function() { };
But the jshint-eclipse plugin gives the warning "Missing spaces after function". The correct format for this plugin is:
var f1 = function () { };
NOTE SPACE AFTER function
Is there a way to format anonymous function declarations differently with eclipse than regular function declarations. I would like to add one place after the βfunctionβ for anonymous functions, but not for ordinary functions.
Thanks.
Update eclipse relevant bug here
source share