Skip to content

Instantly share code, notes, and snippets.

@geuis
Created February 27, 2016 00:10
Show Gist options
  • Save geuis/c671651028d65e329dcd to your computer and use it in GitHub Desktop.
Save geuis/c671651028d65e329dcd to your computer and use it in GitHub Desktop.
ESLint Rules
{
"env": {
"browser": 1,
"node": 1
},
"globals": {
"jQuery": 1,
"$": 1,
"_gaq": 1,
"_ga": 1,
"angular": 1,
"__base": 1,
"__app": 1
},
"rules": {
"quotes": [2, "single"],
"no-underscore-dangle": 0,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
"consistent-this": [2, "self"],
"eol-last": 2,
"space-in-parens": [2, "never"],
"space-before-function-paren": [2, "always"],
"dot-location": [2, "property"],
"dot-notation": [2, {"allowKeywords": true, "allowPattern": ""}],
"no-extend-native": [2],
"linebreak-style": [2, "unix"],
"operator-linebreak": [2, "after"],
"quotes": [2, "single", "avoid-escape"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment