{ "root": true, "env": { "node": true, "mocha": true, "es6": true }, "parserOptions": { "ecmaVersion": 2018 }, "extends": [ "eslint:recommended" ], "rules": { "import/no-cycle": "off", "prefer-destructuring": "off", "no-console": "off", "dot-notation": "off", "quote-props": "off", "comma-dangle": "off", "padded-blocks": "off", "no-trailing-spaces": "off", "no-else-return": "off", "max-len": [ "warn", 200 ], "no-template-curly-in-string": "error", "no-loop-func": "error", "indent": [ "error", 4, { "SwitchCase": 1 } ], "no-multiple-empty-lines": [ "error", { "max": 2, "maxEOF": 2 } ], "semi": "error", "no-var": "error", // disallow unnecessary semicolons "brace-style": [ "error", "stroustrup" ], "curly": "error", "camelcase": [ "warn", { "properties": "never" } ], "quotes": [ "error", "double" ], "handle-callback-err": [ "error", "^(err|error|errors)$" ], "eqeqeq": "error", "no-underscore-dangle": "off", "no-multi-spaces": [ "error", { "exceptions": { "Property": false } } ], "space-unary-ops": [ "error", { "words": true, "nonwords": false } ], "object-curly-spacing": [ "warn", "never" ], "object-curly-newline": "off", "keyword-spacing": [ "error", { "before": true, "after": true } ], "template-curly-spacing": "off", "guard-for-in": "error", "no-return-assign": "error", "comma-style": [ "error", "last" ], "comma-spacing": [ 1, { "before": false, "after": true } ], "space-before-function-paren": [ "error", { "anonymous": "always", "named": "never" } ], "lines-between-class-members": "error", "space-in-parens": [ "error", "never" ], "no-shadow": [ "error", { "allow": [ "resolve", "reject", "error", "err" ] } ], "no-unused-vars": "warn", "no-use-before-define": [ "error", "nofunc" ], "arrow-parens": [ "error", "always" ], "no-confusing-arrow": [ "error", { "allowParens": true } ], "no-unreachable": "error", "no-path-concat": "error", "prefer-arrow-callback": [ "error", { "allowNamedFunctions": true } ], "no-await-in-loop": "off", "prefer-template": "error", "no-useless-concat": "error", "function-paren-newline": [ "error", "consistent" ], "no-param-reassign": [ "error", { "props": false } ] } }