Skip to content

Instantly share code, notes, and snippets.

@glenjamin
Last active September 13, 2015 15:16
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 glenjamin/98e9e473c46c1417dc1c to your computer and use it in GitHub Desktop.
Save glenjamin/98e9e473c46c1417dc1c to your computer and use it in GitHub Desktop.
Default eslint configs
{
"env": {
"node": true
},
"rules": {
"strict": 0,
"quotes": 0,
"indent": [2, 2],
"curly": [2, "multi-line"],
"no-use-before-define": [2, "nofunc"],
"no-unused-vars": [2, "all"],
"no-mixed-requires": [1, true],
"max-depth": [1, 5],
"max-len": [1, 80, 4],
"max-params": [1, 6],
"max-statements": [1, 20],
"eqeqeq": 0,
"new-cap": 0,
"no-else-return": 1,
"no-eq-null": 1,
"no-lonely-if": 1,
"no-path-concat": 0,
"comma-dangle": 0,
"complexity": [1, 20],
"no-floating-decimal": 1,
"no-void": 1,
"no-sync": 1,
"consistent-this": [1, "nope-dont-capture-this"],
"max-nested-callbacks": [2, 3],
"no-nested-ternary": 1,
"space-after-keywords": [1, "always"],
"space-before-function-paren": [1, "never"],
"spaced-line-comment": [1, "always"]
}
}
@glenjamin
Copy link
Author

/*eslint-env node, mocha */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment