mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user