Skip to content

Instantly share code, notes, and snippets.

@davidchase
Created September 15, 2014 18:27
Show Gist options
  • Save davidchase/4690accd7acc5761985c to your computer and use it in GitHub Desktop.
Save davidchase/4690accd7acc5761985c to your computer and use it in GitHub Desktop.
my eslint config
{
"env": {
"browser": true,
"node": true
},
"rules": {
"block-scoped-var": 2,
"complexity": [1, 5],
"consistent-return": 2,
"curly": 2,
"default-case": 2,
"dot-notation": 2,
"eqeqeq": 2,
"guard-for-in": 2,
"no-alert": 2,
"no-caller": 2,
"no-comma-dangle": 2,
"no-div-regex": 2,
"no-dupe-keys": 2,
"no-else-return": 2,
"no-empty-label": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-boolean-cast": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-labels": 2,
"no-iterator": 2,
"no-lone-blocks": 2,
"no-loop-func": 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-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-unused-vars": 1,
"no-unreachable": 2,
"no-void": 2,
"no-warning-comments": 2,
"no-with": 2,
"radix": 2,
"vars-on-top": 2,
"wrap-iife": [2, "inside"],
"yoda": 2,
"quotes": 0,
"eol-last": 0,
"no-extra-strict": 2,
"camelcase": 2,
"consistent-this": [2, "_this"],
"new-cap": 2,
"new-parens": 2,
"func-style": [2, "expression"],
"no-lonely-if": 2,
"no-new-object": 2,
"no-space-before-semi": 2,
"brace-style": [2, "1tbs"],
"no-wrap-func": 2,
"space-after-keywords": [2, "always"],
"use-isnan": 2,
"valid-jsdoc": [2, {
"prefer": {
"return": "returns"
}
}],
"max-nested-callbacks": [2, 3],
"semi": [2, "always"],
"no-underscore-dangle": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment