Skip to content

Instantly share code, notes, and snippets.

@hectorpalmatellez
Created July 27, 2015 13:57
Show Gist options
  • Save hectorpalmatellez/070ea06da4a6a598bc22 to your computer and use it in GitHub Desktop.
Save hectorpalmatellez/070ea06da4a6a598bc22 to your computer and use it in GitHub Desktop.
Eslint settings
{
"env": {
"browser": 1 // http://eslint.org/docs/user-guide/configuring#specifying-environments
},
"globals": { // http://eslint.org/docs/user-guide/configuring#specifying-globals
// jQuery
"$": 1,
"$j": 1
},
"rules": {
"quotes": [2, "single"], // http://eslint.org/docs/rules/quotes
"no-use-before-define": 2, // http://eslint.org/docs/rules/no-use-before-define
"curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly
"eqeqeq": [2, "smart"], // http://eslint.org/docs/rules/eqeqeq
"indent": [2, 2], // http://eslint.org/docs/rules/indent
"no-multiple-empty-lines": [2, { "max": 1 }], // http://eslint.org/docs/rules/no-multiple-empty-lines
"one-var": [2, "never"], // http://eslint.org/docs/rules/one-var
"no-catch-shadow": 0, // http://eslint.org/docs/rules/no-catch-shadow
"no-wrap-func": 0, // http://eslint.org/docs/rules/no-wrap-func.html
"no-unused-vars": [1, { "vars": "local" }] // http://eslint.org/docs/rules/no-unused-vars.html
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment