Skip to content

Instantly share code, notes, and snippets.

@supermamon
Last active June 20, 2017 09:01
Show Gist options
  • Save supermamon/797d0e53fea227acba3e2b3b5b2cf109 to your computer and use it in GitHub Desktop.
Save supermamon/797d0e53fea227acba3e2b3b5b2cf109 to your computer and use it in GitHub Desktop.
{
"env": {
"node": true,
"es6": true
},
"rules": {
/* Possible Errors */
"no-extra-boolean-cast": "error",
/* Best Practices */
"eqeqeq":"error",
"no-empty-function":"error",
"no-eval": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-with": "error",
"prefer-promise-reject-errors": "warn",
/* Strict Mode */
"strict": "error",
/* Variables */
"no-unused-vars": "warn",
"no-use-before-define": "error",
/* Node.js and CommonJS */
"callback-return": "error",
"handle-callback-err":"error",
"no-path-concat":"error",
"no-process-exit":"error",
/* Stylistic Issues */
"array-bracket-spacing": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "warn",
"comma-dangle":"error",
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"eol-last":"error",
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"linebreak-style": ["warn", "unix"],
"max-depth": ["error", 3],
"max-nested-callbacks": ["error", 3],
"new-parens": "error",
"newline-per-chained-call": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always"],
"object-property-newline": "warn",
"quotes": ["warn", "single"],
"semi":["error", "never"],
"space-before-function-paren": "error",
"switch-colon-spacing": ["error", {"after": true, "before": false}],
/* ECMAScript 6 */
"arrow-body-style": ["error", "always"],
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-var": "warn",
"prefer-const":"warn",
"prefer-template": "warn"
},
"plugins": [ "eslint-plugin-one-variable-per-var" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment