Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap-iife #124

Open
SimonLab opened this issue Sep 20, 2016 · 5 comments
Open

wrap-iife #124

SimonLab opened this issue Sep 20, 2016 · 5 comments

Comments

@SimonLab
Copy link
Member

http://eslint.org/docs/rules/wrap-iife

@samhstn
Copy link
Member

samhstn commented Sep 26, 2016

I don't have very much of a preference here, but I'm going to choose:

wrap-iife: ["error", "inside"]

So,

correct

var x = (function () { return { y: 1 };})();

incorrect

var x = (function () { return { y: 1 };}());

Open for changing if anyone has a preference

@jackcarlisle
Copy link
Member

@Shouston3 Douglas Crockford has a preference

@jackcarlisle
Copy link
Member

is there a way of disabling the linter for IIFEs? It keeps saying iife_name is defined but never used

@nelsonic
Copy link
Member

@jackcarlisle do you have time to write a PR?

@nelsonic nelsonic reopened this Oct 13, 2016
@jackcarlisle
Copy link
Member

@nelsonic I'll try and do that at some stage today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants