Skip to content

Instantly share code, notes, and snippets.

@gregberge
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save gregberge/f146442257abab49b07e to your computer and use it in GitHub Desktop.

Select an option

Save gregberge/f146442257abab49b07e to your computer and use it in GitHub Desktop.
ESLint configuration
{
"env": {
"browser": true,
"node": true,
"mocha": true
},
"globals": {
"angular": false,
"Promise": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": false,
"regexYFlag": false,
"restParams": true,
"spread": true,
"superInFunctions": false,
"templateStrings": true,
"unicodeCodePointEscapes": false,
"globalReturn": false,
"jsx": false
},
"rules" : {
"no-comma-dangle": 1,
"no-cond-assign": 2,
"no-console": 1,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-empty-class": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": 1,
"no-extra-semi": 2,
"no-func-assign": 1,
"no-inner-declarations": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
"no-reserved-keys": 0,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"use-isnan": 2,
"valid-jsdoc": [1, {
"prefer": {
"return": "returns"
},
"requireReturn": false,
"requireParamDescription": false
}],
"valid-typeof": 2,
"block-scoped-var": 0,
"complexity": [1, 10],
"consistent-return": 0,
"curly": 0,
"default-case": 0,
"dot-notation": 2,
"eqeqeq": [2, "smart"],
"guard-for-in": 1,
"no-alert": 1,
"no-caller": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-empty-label": 2,
"no-eq-null": 0,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-bind": 2,
"no-fallthrough": 0,
"no-floating-decimal": 1,
"no-implied-eval": 2,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-process-env": 0,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-unused-expressions": 2,
"no-void": 2,
"no-warning-comments": 2,
"no-with": 2,
"radix": 2,
"vars-on-top": 0,
"wrap-iife": 2,
"yoda": 2,
"global-strict": 0,
"no-extra-strict": 2,
"strict": 0,
"no-catch-shadow": 2,
"no-delete-var": 2,
"no-label-var": 2,
"no-shadow": 0,
"no-shadow-restricted-names": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-undefined": 0,
"no-unused-vars": 2,
"no-use-before-define": 0,
"handle-callback-err": 1,
"no-mixed-requires": 0,
"no-new-require": 2,
"no-path-concat": 2,
"no-process-exit": 2,
"no-restricted-modules": 0,
"no-sync": 0,
"brace-style": [1, "1tbs"],
"camelcase": 0,
"comma-spacing": [1, {"before": false, "after": true}],
"comma-style": [1, "last"],
"consistent-this": 0,
"eol-last": 1,
"func-names": 0,
"func-style": [1, "declaration"],
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"max-nested-callbacks": 0,
"new-cap": 2,
"new-parens": 2,
"no-array-constructor": 2,
"no-inline-comments": 0,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"no-nested-ternary": 0,
"no-new-object": 2,
"no-space-before-semi": 2,
"no-spaced-func": 2,
"no-ternary": 0,
"no-trailing-spaces": 2,
"no-underscore-dangle": 0,
"no-wrap-func": 2,
"one-var": 0,
"operator-assignment": [2, "always"],
"padded-blocks": 0,
"quote-props": [1, "as-needed"],
"quotes": [2, "single"],
"semi": [2, "always"],
"sort-vars": 0,
"space-after-keywords": 1,
"space-before-blocks": [1, "always"],
"space-in-brackets": [1, "never"],
"space-in-parens": [1, "never"],
"space-infix-ops": 1,
"space-return-throw-case": 1,
"space-unary-ops": [1, { "words": true, "nonwords": false }],
"spaced-line-comment": [1, "always"],
"wrap-regex": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment