{ "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 6, }, "env": { "node": true, }, "rules": { "no-console": 1, "semi": 2, "semi-spacing": 2, "no-extra-semi": 0, "no-new-object": 2, "no-array-constructor": 2, "no-new-symbol": 2, "no-unused-vars": 2, "func-names": 1, "wrap-iife": [2, "any"], "prefer-const": 1, "no-const-assign": 2, "no-class-assign": 2, "no-dupe-class-members": 2, "no-this-before-super": 2, "no-useless-constructor": 2, "one-var": [2, "always"], "one-var-declaration-per-line": 1, "vars-on-top": 1, "brace-style": [1, "1tbs", { "allowSingleLine": true }], "curly": [2, "multi-line"], #this covers all except: if(condition) statement;\n else statement; # "curly": 2, #this covers all but also failse single-line if-statements. "no-nested-ternary": 2, "no-unneeded-ternary": 2, "indent": [2, 2, {"SwitchCase": 1}], "id-length": [2, {"min": 2, "exceptions": ["i", "j", "x", "y", "z"]}], "camelcase": 2, "quotes": [1, "single", "avoid-escape"], "quote-props": [2, "as-needed", { "unnecessary": true }], "template-curly-spacing": 1, "no-underscore-dangle": [2, { "allow": [] }], "new-cap": 2, "new-parens": 2, "no-loop-func": 2, "guard-for-in": 2, # "object-shorthand": [2, "never"], "object-shorthand": [2, "always"], "complexity": [2, 15], "block-scoped-var": 2, "dot-location": [2, "property"], "dot-notation": 2, "eqeqeq": [2, "smart"], "no-caller": 2, "no-case-declarations": 2, "default-case": 2, "consistent-return": 2, "no-else-return": 2, "no-empty-pattern": 1, "no-eval": 2, "no-extend-native": 2, "no-extra-bind": 2, "no-fallthrough": 2, "no-floating-decimal": 1, "no-implicit-coercion": 2, "no-implied-eval": 2, "no-lone-blocks": 2, "no-magic-numbers": [1, {"ignore": [0, 1, -1, 404]}], "no-multi-spaces": 2, "no-irregular-whitespace": 2, "no-multi-str": 2, "no-native-reassign": 2, "no-param-reassign": 2, "no-proto": 2, "no-redeclare": 2, "no-return-assign": 2, "no-self-compare": 2, "no-sequences": 2, "no-shadow": 2, "callback-return": 1, "global-require": 0, "handle-callback-err": 2, "no-path-concat": 2, "no-process-exit": 2, "no-new-require": 2, "no-confusing-arrow": 2, "arrow-spacing": 1, "require-yield": 2, "yield-star-spacing": 2, "no-continue": 2, "block-spacing": 2, "array-bracket-spacing": [2, "always", { "objectsInArrays": false, "arraysInArrays": false }], "object-curly-spacing": [2, "always", { "objectsInObjects": false, "arraysInObjects": false }], "comma-spacing": 2, "comma-style": [2, "first", {exceptions: {ObjectExpression: true, ArrayExpression: true}}], "computed-property-spacing": 2, "consistent-this": [2, "self"], "key-spacing": 2, "keyword-spacing": 2, "linebreak-style": [2, "unix"], "no-inline-comments": 2, "max-len": [1, 120], "max-depth": [1, 5], "max-nested-callbacks": [2, 4], "max-params": [2,5], "max-statements": [2, 50], "no-bitwise": 2, "no-lonely-if": 1, "no-multiple-empty-lines": [1, {"max": 1}], "no-spaced-func": 1, "no-trailing-spaces": 2, "no-whitespace-before-property": 2, "padded-blocks": [1, "never"], "space-before-blocks": 2, "space-before-function-paren": [1, "never"], "space-in-parens": 1, "space-infix-ops": 2, "space-unary-ops": 2, "wrap-regex": 2, "operator-linebreak": [1, "before"], } }