Skip to content

Instantly share code, notes, and snippets.

@daliborgogic
Created January 2, 2015 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daliborgogic/d6afc3edaf1ecc82c43e to your computer and use it in GitHub Desktop.
Save daliborgogic/d6afc3edaf1ecc82c43e to your computer and use it in GitHub Desktop.
.eslintrc
{
"env": {
"node": true
},
"rules": {
// Rules are divided into sections from http://eslint.org/docs/rules/
// Possible errors
"no-cond-assign": 0, // regex matching is easier with statements in loop contitions
"no-comma-dangle": 0,
"no-console": 0,
"no-extra-parens": 2,
// Best practices
"block-scoped-var": 2,
"eqeqeq": [2, "smart"],
"no-else-return": 2,
"no-floating-decimal": 2,
"wrap-iife": [2, "inside"],
// Variables
"no-use-before-define": 0,
// Node.js
"no-mixed-requires": 0,
"no-path-concat": 0,
// Stylistic issues
"brace-style": 2,
"camelcase": 0,
"new-cap": 0,
"no-lonely-if": 2,
"no-underscore-dangle": 0,
"space-after-keywords": 2,
"space-in-brackets": [2, "never"],
"space-infix-ops": 2,
"one-var": 2,
"quotes": [2, "single"],
// Legacy
"no-bitwise": 2,
"max-len": [2, 120, 4]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment