jshint/jshint — Issue #315: Option for self-executing function parentheses placement
Author: starzonmyarmz
Created: 2011-10-23 19:09:13+00:00
State: open

It is my understanding that in a self executing function that either of these syntaxes are correct:

(function myFunctionName() {})();

(function myFunctionName() {}());

I personally think the top variation is easier to read, but jslint (and jshint) give me validation errors when using it and enforce the bottom variation. It would be nice if there were an option to set to enforce one variation over the other.