{ "env": { "browser": false, "es6": true, "node": true }, "rules": { "accessor-pairs": "error", "array-bracket-spacing": [ "error", "never" ], "array-callback-return": "error", "arrow-body-style": [ "error", "always" ], "arrow-parens": [ "error", "always" ], "arrow-spacing": "error", "block-scoped-var": "error", "block-spacing": "error", "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ], "callback-return": [ "error", [ "callback", "cb", "next" ] ], "camelcase": "off", "capitalized-comments": [ "error", "never", { "ignorePattern": "TODO" } ], "class-methods-use-this": "error", "comma-dangle": [ "error", "never" ], "comma-spacing": "error", "comma-style": [ "error", "last" ], "complexity": [ "error", 11 ], "computed-property-spacing": [ "error", "never" ], "consistent-return": "error", "consistent-this": [ "error", "self" ], "constructor-super": "error", "curly": [ "error", "all" ], "default-case": "error", "dot-location": [ "error", "property" ], "dot-notation": [ "error", { "allowKeywords": true } ], "eol-last": "error", "eqeqeq": [ "error", "always" ], "func-call-spacing": [ "error", "never" ], "func-name-matching": [ "error", { "includeCommonJSModuleExports": true } ], "func-names": "error", "func-style": [ "error", "declaration" ], "generator-star-spacing": "error", "global-require": "error", "guard-for-in": "error", "handle-callback-err": "error", "id-blacklist": [ "error", "err", "e", "req", "res", "cb", "callback" ], "id-length": [ "error", { "min": 2 } ], "id-match": [ "off", "^[a-z]+([A-Z][a-z]+)*$", { "properties": true } ], "indent": [ "error", 2, { "SwitchCase": 1 } ], "init-declarations": [ "error", "always" ], "jsx-quotes": [ "error", "prefer-single" ], "key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ], "keyword-spacing": [ "error", { "before": true, "after": true } ], "line-comment-position": [ "error", { "position": "above" } ], "linebreak-style": [ "error", "unix" ], "lines-around-comment": [ "error", { "beforeBlockComment": true, "afterBlockComment": false, "beforeLineComment": false, "afterLineComment": false, "allowBlockStart": true, "allowBlockEnd": false, "allowObjectStart": true, "allowObjectEnd": false, "allowArrayStart": true, "allowArrayEnd": false } ], "lines-around-directive": [ "error", "always" ], "max-depth": [ "error", 4 ], "max-len": [ "error", 130, 2, { "ignoreComments": true, "ignoreTrailingComments": true, "ignoreUrls": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true } ], "max-lines": [ "error", 130 ], "max-nested-callbacks": [ "error", 3 ], "max-params": [ "error", 4 ], "max-statements": [ "error", 15 ], "max-statements-per-line": [ "error", { "max": 1 } ], "new-cap": [ "error", { "newIsCap": true, "newIsCapExceptions": [], "capIsNew": true, "capIsNewExceptions": [] } ], "new-parens": "error", "newline-after-var": [ "off", "always" ], "newline-before-return": "off", "newline-per-chained-call": "error", "no-alert": "error", "no-array-constructor": "error", "no-await-in-loop": "error", "no-bitwise": "error", "no-caller": "error", "no-case-declarations": "error", "no-catch-shadow": "error", "no-class-assign": "error", "no-compare-neg-zero": "error", "no-cond-assign": [ "error", "always" ], "no-confusing-arrow": [ "error", { "allowParens": true } ], "no-console": "error", "no-const-assign": "error", "no-constant-condition": "error", "no-continue": "error", "no-control-regex": "error", "no-debugger": "error", "no-delete-var": "error", "no-div-regex": "error", "no-dupe-args": "error", "no-dupe-class-members": "error", "no-dupe-keys": "error", "no-duplicate-case": "error", "no-duplicate-imports": [ "error", { "includeExports": true } ], "no-else-return": "error", "no-empty": [ "error", { "allowEmptyCatch": true } ], "no-empty-character-class": "error", "no-empty-function": "error", "no-empty-pattern": "error", "no-eq-null": "error", "no-eval": "error", "no-ex-assign": "error", "no-extend-native": "error", "no-extra-bind": "error", "no-extra-boolean-cast": "error", "no-extra-label": "error", "no-extra-parens": "error", "no-extra-semi": "error", "no-fallthrough": "error", "no-floating-decimal": "error", "no-func-assign": "error", "no-global-assign": "error", "no-implicit-coercion": [ "error", { "allow": [ "!!" ] } ], "no-implicit-globals": "error", "no-implied-eval": "error", "no-inline-comments": "error", "no-inner-declarations": [ "error", "functions" ], "no-invalid-regexp": "error", "no-invalid-this": "error", "no-irregular-whitespace": "error", "no-iterator": "error", "no-label-var": "error", "no-labels": [ "error", { "allowLoop": true, "allowSwitch": true } ], "no-lone-blocks": "error", "no-lonely-if": "error", "no-loop-func": "error", "no-magic-numbers": [ "off", { "enforceConst": true, "ignoreArrayIndexes": true, "ignore": [] } ], "no-mixed-operators": "off", "no-mixed-requires": [ "error", false ], "no-mixed-spaces-and-tabs": [ "error", false ], "no-multi-assign": "error", "no-multi-spaces": "error", "no-multi-str": "error", "no-multiple-empty-lines": [ "error", { "max": 1 } ], "no-native-reassign": "error", "no-negated-condition": "error", "no-negated-in-lhs": "error", "no-nested-ternary": "error", "no-new": "error", "no-new-func": "error", "no-new-object": "error", "no-new-require": "error", "no-new-symbol": "error", "no-new-wrappers": "error", "no-obj-calls": "error", "no-octal": "error", "no-octal-escape": "error", "no-param-reassign": "error", "no-path-concat": "error", "no-plusplus": "off", "no-process-env": "error", "no-process-exit": "error", "no-proto": "error", "no-redeclare": "error", "no-regex-spaces": "error", "no-restricted-globals": [ "error", "event" ], "no-restricted-imports": "off", "no-restricted-modules": "error", "no-restricted-properties": "error", "no-restricted-syntax": "error", "no-return-assign": [ "error", "always" ], "no-return-await": "error", "no-script-url": "error", "no-self-assign": "error", "no-self-compare": "error", "no-sequences": "error", "no-shadow": "error", "no-shadow-restricted-names": "error", "no-spaced-func": "error", "no-sparse-arrays": "error", "no-sync": "error", "no-tabs": "error", "no-template-curly-in-string": "off", "no-ternary": "off", "no-this-before-super": "error", "no-throw-literal": "error", "no-trailing-spaces": "error", "no-undef": [ "error", { "typeof": true } ], "no-undef-init": "error", "no-undefined": "error", "no-underscore-dangle": "off", "no-unexpected-multiline": "error", "no-unmodified-loop-condition": "error", "no-unneeded-ternary": "error", "no-unreachable": "error", "no-unsafe-finally": "error", "no-unsafe-negation": "error", "no-unused-expressions": "error", "no-unused-labels": "error", "no-unused-vars": [ "error", { "vars": "all", "args": "after-used" } ], "no-use-before-define": [ "error", "nofunc" ], "no-useless-call": "error", "no-useless-computed-key": "error", "no-useless-concat": "error", "no-useless-constructor": "error", "no-useless-escape": "error", "no-useless-rename": "error", "no-var": "error", "no-void": "error", "no-warning-comments": [ "warn", { "terms": [ "todo", "fixme", "xxx" ], "location": "anywhere" } ], "no-whitespace-before-property": "error", "no-with": "error", "nonblock-statement-body-position": "off", "object-curly-newline": [ "off", "always" ], "object-curly-spacing": [ "error", "never" ], "object-property-newline": "error", "object-shorthand": "error", "one-var": [ "error", "never" ], "one-var-declaration-per-line": [ "error", "always" ], "operator-assignment": [ "error", "always" ], "operator-linebreak": [ "error", "after" ], "padded-blocks": [ "error", "never" ], "prefer-arrow-callback": "error", "prefer-const": "error", "prefer-destructuring": [ "error", { "array": true, "object": true }, { "enforceForRenamedProperties": false } ], "prefer-numeric-literals": "error", "prefer-promise-reject-errors": [ "error", { "allowEmptyReject": true } ], "prefer-reflect": "off", "prefer-rest-params": "error", "prefer-spread": "error", "prefer-template": "error", "quote-props": [ "error", "as-needed" ], "quotes": [ "error", "single", { "avoidEscape": true, "allowTemplateLiterals": true } ], "radix": [ "error", "as-needed" ], "require-await": "error", "require-jsdoc": "off", "require-yield": "error", "rest-spread-spacing": [ "error", "never" ], "semi": [ "error", "always" ], "semi-spacing": [ "error", { "before": false, "after": true } ], "sort-imports": "off", "sort-keys": "off", "sort-vars": "off", "space-before-blocks": [ "error", "always" ], "space-before-function-paren": [ "error", { "anonymous": "always", "named": "never", "asyncArrow": "always" } ], "space-in-parens": [ "error", "never" ], "space-infix-ops": "error", "space-unary-ops": [ "error", { "words": true, "nonwords": false } ], "spaced-comment": [ "error", "always" ], "strict": [ "error", "safe" ], "symbol-description": "error", "template-curly-spacing": [ "error", "never" ], "template-tag-spacing": [ "error", "never" ], "unicode-bom": [ "error", "never" ], "use-isnan": "error", "valid-jsdoc": "off", "valid-typeof": "error", "vars-on-top": "off", "wrap-iife": [ "error", "outside" ], "wrap-regex": "error", "yield-star-spacing": "error", "yoda": [ "error", "never" ] } }