Skip to content

Instantly share code, notes, and snippets.

@aceakash
Created July 26, 2015 10:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aceakash/b05e42f46c7d850d9240 to your computer and use it in GitHub Desktop.
Save aceakash/b05e42f46c7d850d9240 to your computer and use it in GitHub Desktop.
ESLint Configuration for Node.js/ES6
{
"rules": {
"indent": [2, 2],
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"no-underscore-dangle": 0,
"curly": 0,
"no-use-before-define": [2, "nofunc"],
"spaced-comment": [2, "always"],
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"semi-spacing": [2, {"before": false, "after": true}],
"no-var": 2,
"object-shorthand": [2, "always"],
"prefer-const": 2
},
"env": {
"es6": true,
"node": true,
"mocha": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment