Skip to content

Instantly share code, notes, and snippets.

@justinph
Created September 29, 2015 19:11
Show Gist options
  • Save justinph/a1e84e9ba7159ea42c8d to your computer and use it in GitHub Desktop.
Save justinph/a1e84e9ba7159ea42c8d to your computer and use it in GitHub Desktop.
Updated eslint config to work with 1.0+, deals with `space-after-function-name` depreciation
{
"env": {
"browser": true,
"amd": true
},
"globals": {
"magnum": true,
"define": true,
"require": true,
"Modernizr": true,
"Hammer": true,
"NYTADX": true
},
"rules": {
"block-scoped-var": 1,
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
"no-cond-assign": [1, "always"],
"no-console": 1,
"no-new": 0,
"no-else-return": 1,
"no-void": 1,
"quotes": [1, "single"],
"radix": 1,
"space-after-keywords": [1, "always"],
"vars-on-top": 2,
"wrap-iife": [1, "inside"],
"space-before-function-paren" : [2, "always"],
"semi": [2, "always"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment