Created
January 2, 2015 12:38
-
-
Save daliborgogic/d6afc3edaf1ecc82c43e to your computer and use it in GitHub Desktop.
.eslintrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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