Skip to content

Instantly share code, notes, and snippets.

@d6u
Created May 16, 2015 02:41
Show Gist options
  • Select an option

  • Save d6u/f4aec06c790f9067db3c to your computer and use it in GitHub Desktop.

Select an option

Save d6u/f4aec06c790f9067db3c to your computer and use it in GitHub Desktop.
{
"ecmaFeatures": {},
"parser": "espree",
"env": {
"browser": false,
"node": false,
"amd": false,
"mocha": false,
"jasmine": false,
"phantomjs": false,
"jquery": false,
"shelljs": false,
"es6": false
},
"globals": {},
"plugins": [],
"rules": {
// Possible Errors
//
"comma-dangle": 0, // Safe in > IE8
"no-cond-assign": [2, "except-parens"],
"no-console": 2,
"no-constant-condition": 0,
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-class": 2,
"no-empty": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": 2,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": [2, "both"],
"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, // Safe in >= ES5
"no-sparse-arrays": 2,
"no-unreachable": 2,
"use-isnan": 2,
"valid-jsdoc": 2, // Might be too strict
"valid-typeof": 2,
// Best Practices
//
"block-scoped-var": 2,
"complexity": 0,
"consistent-return": 0,
"curly": [2, "multi-line"], // Allow `if (a) return;`
"default-case": 2,
"dot-notation": 0,
"dot-location": [2, "property"],
"eqeqeq": [2, "allow-null"],
"guard-for-in": 2,
"no-alert": 2,
"no-caller": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-empty-label": 2,
"no-eq-null": 0,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"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-func": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-param-reassign": 0,
"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-throw-literal": 2,
"no-unused-expressions": 2,
"no-void": 2,
"no-warning-comments": 2,
"no-with": 2,
"radix": 2,
"vars-on-top": 2,
"wrap-iife": [2, "any"],
"yoda": 0,
// strict
"strict": [2, "global"],
// Variables
//
"no-catch-shadow": 0,
"no-delete-var": 2,
"no-label-var": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 0,
"no-undef-init": 2,
"no-undef": 2,
"no-undefined": 2,
"no-unused-vars": 2,
"no-use-before-define": 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment