{ "env": { "node": true, "es6": true, "mocha": true }, "rules": { // Possible Errors "comma-dangle": [ 2, "never" ], "no-cond-assign": 0, "no-console": 1, "no-constant-condition": 1, "no-control-regex": 0, "no-debugger": 1, "no-dupe-args": 2, "no-dupe-keys": 2, "no-duplicate-case": 2, "no-empty": 1, "no-ex-assign": 1, "no-extra-boolean-cast": 1, "no-extra-parens": 0, "no-extra-semi": 1, "no-func-assign": 1, "no-inner-declarations": 1, "no-invalid-regexp": 2, "no-irregular-whitespace": 2, "no-negated-in-lhs": 2, "no-obj-calls": 1, "no-regex-spaces": 1, "no-sparse-arrays": 2, "no-unreachable": 2, "use-isnan": 2, "valid-jsdoc": 0, "valid-typeof": 2, // Best Practices "accessor-pairs": 0, "block-scoped-var": 1, "complexity": 0, "consitent-return": 0, "curly": 1, "default-case": 0, "dot-notation": [ 1, { "allowKeywords": false } ], "dot-location": [ 1, "property" ], "eqeqeq": [ 2, "smart" ], "guard-for-in": 0, "no-alert": 2, "no-caller": 2, "no-div-regex": 1, "no-else-return": 0, "no-eq-null": 1, "no-eval": 0, "no-extend-native": 2, "no-extra-bind": 2, "no-fallthrough": 1, "no-floating-decimal": 1, "no-implied-eval": 2, "no-iterator": 2, "no-labels": [ 1, { allowLoop: true } ], "no-lone-blocks": 2, "no-loop-func": 0, "no-multi-spaces": 2, "no-multi-str": 1, "no-native-reassign": 2, "no-new-func": 0, "no-new-wrappers": 1, "no-new": 1, "no-octal-escape": 1, "no-octal": 0, "no-param-reassign": 0, "no-process-env": 2, "no-proto": 2, "no-redeclare": 2, "no-return-assign": 1, "no-script-url": 2, "no-self-compare": 2, "no-sequences": 0, "no-throw-literal": 1, "no-unused-expressions": 1, "no-void": 2, "no-warning-comments": 0, "no-with": 2, "radix": 0, "vars-on-top": 0, "wrap-iife": 1, "yoda": [ 1, "never", { "exceptRange": true } ], // Variables "no-catch-shadow": 1, "no-delete-var": 2, "no-label-var": 2, "no-shadow-restricted-names": 1, "no-shadow": 0, "no-undef-init": 1, "no-undef": 2, "no-undefined": 0, "no-unused-vars": 1, "no-use-before-define": 0, // Code style "brace-style": [ 2, "1tbs", { "allowSingleLine": true } ], "camelcase": [ 1, { "properties": "never" } ], "comma-spacing": [ 2, { "before": false, "after": true } ], "comma-style": [ 2, "last" ], "consistent-this": 0, "eol-last": 1, "func-names": 0, "func-style": 0, "indent": [ 1, 4 ], "key-spacing": [ 1, { "beforeColon": false, "afterColon": true } ], "lines-around-comment": 0, "max-nested-callbacks": [1, 4], "new-cap": 0, "new-parens": 1, "newline-after-var": 0, "no-array-constructor": 1, "no-continue": 0, "no-inline-comments": 0, "no-lonely-if": 1, "no-mixed-spaces-and-tabs": 2, "no-multiple-empty-lines": 1, "no-nested-ternary": 1, "no-new-object": 1, "no-spaced-func": 1, "no-ternary": 0, "no-trailing-spaces": [ 1, { "skipBlankLines": true } ], "no-underscore-dangle": 0, "no-unneeded-ternary": 1, "object-curly-spacing": [ 1, "always" ], "one-var": 0, "operator-assignment": 0, "operator-linebreak": [ 1, "after" ], "padded-blocks": 0, "quote-props": 0, "quotes": [ 1, "single" ], "semi-spacing": 0, "semi": [ 1, "never" ], "sort-vars": 0, "keyword-spacing": 1, "space-before-blocks": [ 1, "always" ], "space-before-function-paren": [ 1, { "anonymous": "always", "named": "never" } ], "space-in-parens": [ 1, "never" ], "space-infix-ops": [ 1, { "int32Hint": false } ], "space-unary-ops": [ 1, { "words": true, "nonwords": false } ], "spaced-comment": 0, "wrap-regex": 0, // EMCAScript 6 "generator-star-spacing": [ 1, "before" ], "no-var": 1, "object-shorthand": [ 1, "always" ], "prefer-const": 1, // Legacy "max-depth": [ 1, 5 ], "max-len": 0, "max-params": [ 1, 5 ], "max-statements": 0, "no-bitwise": 0, "no-plusplus": 0 } }