Skip to content

Instantly share code, notes, and snippets.

@otterthecat
Last active December 31, 2015 23:15
Show Gist options
  • Save otterthecat/c4b3d5f30706dab82e51 to your computer and use it in GitHub Desktop.
Save otterthecat/c4b3d5f30706dab82e51 to your computer and use it in GitHub Desktop.
{
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"objectLiteralComputedProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"regexYFlag": true,
"restPrams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"jsx": true
},
"env": {
"node": true,
"browser": true,
"mocha": true
},
"rules": {
// Prevent Error Prone Code
///////////////////////////////////////////////////
"no-cond-assign": [2, "always"],
"no-console": 1,
"no-empty-class": 1,
"no-extra-parens": 1,
"no-reserved-keys": 2,
"valid-jsdoc": [1, {
"return": "returns"
}],
// Best Practice
///////////////////////////////////////////////////
"block-scoped-var": 2,
"complexity": [1, 3],
"default-case": 2,
"guard-for-in": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-eval": 1,
"no-extend-native": 1,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-process-env": 1,
"no-self-compare": 2,
"no-throw-literal": 2,
"no-void": 1,
"no-warning-comments": [2, {"terms": ["FIXME"]}],
"radix": 2,
"wrap-iife": 2,
"strict": [2, "global"],
"no-undefined": 2,
// Node Specific
///////////////////////////////////////////////////
"handle-callback-err": 2,
"no-mixed-requires": [2, true],
"no-new-require": 2,
"no-path-concat": 2,
"no-process-exit": 0,
// Opinion
///////////////////////////////////////////////////
"indent": [2, 2],
"brace-style": [2, "stroustrup"],
"comma-spacing": [2, {"before": false, "after": true}],
"consistent-this": [2, "self"],
"func-style": [2, "expression"],
"key-spacing": [2,
{
"beforeColon": false,
"afterColon": true
}
],
"max-nested-callbacks": [2, 3],
"no-inline-comments": 2,
"no-lonely-if": 2,
"no-multiple-empty-lines": [2, {"max": 4}],
"no-spaced-func": 0,
"no-underscore-dangle": 1,
"padded-blocks": [2, "never"],
"quote-props": 2,
"quotes": [2, "single", "avoid-escape"],
"semi": [2, "always"],
"space-after-keywords": 2,
"space-before-blocks": 2,
"space-before-function-parentheses": 2,
"space-in-brackets": [2, "never"],
"space-in-parens": [2, "never"],
"space-unary-ops": 2,
"spaced-line-comment": 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment