[eslint config] [breaking] require outer IIFE wrapping; flesh out guide section.

There was lots of discussion [here](https://github.com/airbnb/javascript/issues/21#issuecomment-10203921), but now that we have both a modern build system and an eslint rule requiring terminating semicolons, the concerns with the “crockford” style no longer apply.
This commit is contained in:
Jordan Harband
2016-01-10 15:11:05 -08:00
parent c2fd8fbbd6
commit 4ef335e242
2 changed files with 9 additions and 4 deletions

View File

@@ -108,7 +108,8 @@ module.exports = {
// requires to declare all vars on top of their containing scope
'vars-on-top': 2,
// require immediate function invocation to be wrapped in parentheses
'wrap-iife': [2, 'any'],
// http://eslint.org/docs/rules/wrap-iife.html
'wrap-iife': [2, 'outside'],
// require or disallow Yoda conditions
'yoda': 2
}