Created
July 31, 2015 14:26
-
-
Save mstalfoort/c400fd34efbd2d2a4fe9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"browser": true | |
}, | |
"rules": { | |
// Possible Errors | |
// for DEV | |
"no-console": 0, // http://eslint.org/docs/rules/no-console | |
// for PROD | |
// "no-console": 2, // http://eslint.org/docs/rules/no-console | |
"no-alert": 2, // http://eslint.org/docs/rules/no-alert | |
"no-debugger": 2, // http://eslint.org/docs/rules/no-debugger | |
"no-empty": 2, // http://eslint.org/docs/rules/no-empty | |
"no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi | |
"no-reserved-keys": 2, // http://eslint.org/docs/rules/no-reserved-keys | |
"valid-typeof": 2, // http://eslint.org/docs/rules/valid-typeof | |
// Best Practices | |
"block-scoped-var": 2, // http://eslint.org/docs/rules/block-scoped-var | |
"curly": 2, // http://eslint.org/docs/rules/curly | |
"dot-notation": 0, // http://eslint.org/docs/rules/dot-notation | |
"eqeqeq": [2, "smart"], // http://eslint.org/docs/rules/eqeqeq | |
"guard-for-in": 2, // http://eslint.org/docs/rules/guard-for-in | |
"no-caller": 2, // http://eslint.org/docs/rules/no-caller | |
"no-else-return": 2, // http://eslint.org/docs/rules/no-else-return | |
"no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null | |
"no-eval": 2, // http://eslint.org/docs/rules/no-eval | |
"no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal | |
"no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func | |
"no-multi-spaces": 2, // http://eslint.org/docs/rules/no-multi-spaces | |
"no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str | |
"no-new-func": 2, // http://eslint.org/docs/rules/no-new-func | |
"no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers | |
"no-new": 0, // http://eslint.org/docs/rules/no-new | |
"no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare | |
"no-script-url": 2, // http://eslint.org/docs/rules/no-script-url | |
"no-sequences": 2, // http://eslint.org/docs/rules/no-sequences | |
// "no-unused-expressions": 0, // http://eslint.org/docs/rules/no-unused-expressions | |
"radix": 2, // http://eslint.org/docs/rules/radix | |
"vars-on-top": 2, // http://eslint.org/docs/rules/vars-on-top | |
"wrap-iife": 2, // http://eslint.org/docs/rules/wrap-iife | |
// "yoda": 0, // http://eslint.org/docs/rules/yoda | |
// Strict Mode | |
"strict": [2, "function"], // http://eslint.org/docs/rules/strict | |
// Variables | |
"no-shadow": 2, // http://eslint.org/docs/rules/no-shadow | |
"no-undef-init": 2, // http://eslint.org/docs/rules/no-undef-init | |
"no-undef": 2, // http://eslint.org/docs/rules/no-undef | |
"no-unused-vars": 2, // http://eslint.org/docs/rules/no-unused-vars | |
"no-use-before-define": 2, // http://eslint.org/docs/rules/no-use-before-define | |
// Node.js | |
// Stylistic issues | |
"array-bracket-spacing": [2, "never"], // http://eslint.org/docs/rules/array-bracket-spacing | |
"brace-style": [2, "1tbs"], // http://eslint.org/docs/rules/brace-style | |
"camelcase": [2, {"properties": "always"}], // http://eslint.org/docs/rules/camelcase | |
"comma-spacing": [2, {"before": false, "after": true}], // http://eslint.org/docs/rules/comma-spacing | |
// "comma-style": 2, // http://eslint.org/docs/rules/comma-style | |
// "consistent-this": [2, "self"], // http://eslint.org/docs/rules/consistent-this | |
"eol-last": 2, // http://eslint.org/docs/rules/eol-last | |
// "func-names": 2, // http://eslint.org/docs/rules/func-names | |
"indent": [2, 4], // http://eslint.org/docs/rules/indent | |
"key-spacing": [2, {"beforeColon": false, "afterColon": true}], // http://eslint.org/docs/rules/key-spacing | |
"linebreak-style": [2, "unix"], // http://eslint.org/docs/rules/linebreak-style | |
"max-nested-callbacks": [2, 3], // http://eslint.org/docs/rules/max-nested-callbacks | |
"new-cap": 2, // http://eslint.org/docs/rules/new-cap | |
"no-mixed-spaces-and-tabs": 2, // http://eslint.org/docs/rules/no-mixed-spaces-and-tabs | |
// "no-multiple-empty-lines": [2, {"max": 2}], // http://eslint.org/docs/rules/no-multiple-empty-lines | |
"no-nested-ternary": 2, // http://eslint.org/docs/rules/no-nested-ternary | |
"no-spaced-func": 2, // http://eslint.org/docs/rules/no-spaced-func | |
"no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces | |
"no-underscore-dangle": 2, // http://eslint.org/docs/rules/no-underscore-dangle | |
"object-curly-spacing": [2, "never"], // http://eslint.org/docs/rules/object-curly-spacing | |
"one-var": [2, "never"], // http://eslint.org/docs/rules/one-var | |
// "operator-assignment": [2, "always"], // http://eslint.org/docs/rules/operator-assignment | |
"operator-linebreak": [2, "after"], // http://eslint.org/docs/rules/operator-linebreak | |
"quote-props": [2, "as-needed"], // http://eslint.org/docs/rules/quote-props | |
"quotes": [2, "single"], // http://eslint.org/docs/rules/quotes | |
"semi-spacing": [2, {"before": false, "after": true}], // http://eslint.org/docs/rules/semi-spacing | |
"semi": [2, "always"], // http://eslint.org/docs/rules/semi | |
"space-after-keywords": [2, "always"], // http://eslint.org/docs/rules/space-after-keywords | |
"space-before-blocks": [2, "always"], // http://eslint.org/docs/rules/space-before-blocks | |
"space-before-function-paren": [2, { | |
"anonymous": "never", | |
"named": "never" | |
}], // http://eslint.org/docs/rules/space-before-function-paren | |
"space-in-parens": [2, "never"], // http://eslint.org/docs/rules/space-in-parens | |
"space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops | |
"space-unary-ops": 2, // http://eslint.org/docs/rules/space-unary-ops | |
"spaced-comment": [2, "always"], // http://eslint.org/docs/rules/spaced-comment | |
// ECMAScript 6 | |
// Legacy | |
"max-depth": [1, 2], // http://eslint.org/docs/rules/max-depth | |
"max-len": [2, 120, 4], // http://eslint.org/docs/rules/max-len | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment