const OFF = 0; const WARN = 1; const ERROR = 2; module.exports = { extends: "eslint:recommended", rules: { "arrow-body-style": [ERROR, "as-needed"], "array-bracket-spacing": [ ERROR, "always" ], "arrow-parens": [ ERROR, "always" ], "arrow-spacing": [ ERROR ], "block-spacing": [ ERROR, "always" ], "brace-style": [ ERROR, "1tbs", { "allowSingleLine": true } ], "comma-dangle": [ ERROR, "always-multiline" ], "comma-spacing": [ ERROR ], "comma-style": [ ERROR, "last" ], "constructor-super": [ ERROR ], "curly": [ ERROR, "all" ], "dot-notation": [ ERROR ], "eqeqeq": [ ERROR, "allow-null" ], "func-style": [ ERROR, "declaration", { "allowArrowFunctions": true } ], "indent": [ ERROR, 2 ], "key-spacing": [ ERROR ], "keyword-spacing": [ ERROR ], "linebreak-style": [ ERROR, "unix" ], "new-parens": [ ERROR ], "max-len": [ ERROR, 80 ], "no-array-constructor": [ ERROR ], "no-case-declarations": [ ERROR ], "no-class-assign": [ ERROR ], "no-confusing-arrow": [ ERROR, { "allowParens": true } ], "no-console": [ OFF ], "no-const-assign": [ ERROR ], "no-constant-condition": [ ERROR ], "no-dupe-class-members": [ ERROR ], "no-eval": [ ERROR ], "no-extend-native": [ ERROR ], "no-extra-semi": [ ERROR ], "no-floating-decimal": [ ERROR ], "no-implicit-coercion": [ ERROR ], "no-implied-eval": [ ERROR ], "no-invalid-this": [ ERROR ], "no-labels": [ ERROR ], "no-lonely-if": [ ERROR ], "no-mixed-requires": [ ERROR ], "no-multi-spaces": [ ERROR ], "no-multi-str": [ ERROR ], "no-multiple-empty-lines": [ ERROR, { "max": 2, "maxEOF": 1 } ], "no-native-reassign": [ ERROR ], "no-new-func": [ ERROR ], "no-new-object": [ ERROR ], "no-new-require": [ ERROR ], "no-new-wrappers": [ ERROR ], "no-param-reassign": [ ERROR ], "no-proto": [ ERROR ], "no-return-assign": [ ERROR ], "no-self-compare": [ ERROR ], "no-sequences": [ ERROR ], "no-shadow": [ ERROR ], "no-shadow-restricted-names": [ ERROR ], "no-this-before-super": [ ERROR ], "no-throw-literal": [ ERROR ], "no-trailing-spaces": [ ERROR ], "no-unexpected-multiline": [ ERROR ], "no-unneeded-ternary": [ ERROR ], "no-unreachable": [ ERROR ], "no-use-before-define": [ ERROR, "nofunc" ], "no-var": [ ERROR ], "no-void": [ ERROR ], "no-with": [ ERROR ], "object-curly-spacing": [ ERROR, "always" ], "one-var": [ ERROR, { "uninitialized": "always", "initialized": "never" } ], "operator-assignment": [ ERROR, "always" ], "operator-linebreak": [ ERROR, "after" ], "padded-blocks": [ ERROR, "never" ], "prefer-const": [ ERROR ], "prefer-template": [ ERROR ], "quote-props": [ ERROR, "as-needed" ], "quotes": [ ERROR, "single", "avoid-escape" ], "semi": [ ERROR, "always" ], "semi-spacing": [ ERROR ], "space-before-blocks": [ ERROR, "always" ], "space-before-function-paren": [ ERROR, "never" ], "space-in-parens": [ ERROR, "never" ], "space-infix-ops": [ ERROR ], "space-unary-ops": [ ERROR ], "spaced-comment": [ ERROR, "always" ], "strict": [ ERROR, "global" ], "wrap-iife": [ ERROR, "inside" ], "yoda": [ ERROR, "never" ], }, env: { "es6": true, "node": true, "mocha": true, }, };