{ "parser": "babel-eslint", "extends": ["eslint:recommended"], "parserOptions": { "ecmaVersion": 6, "sourceType": "module" }, "env": { "browser": true, "commonjs": true, "mocha": true, "es6": true }, "rules": { "no-console": 0, "valid-jsdoc": 1, "accessor-pairs": 2, "array-callback-return": 2, "block-scoped-var": 2, "consistent-return": 2, "default-case": 2, "dot-notation": 2, "eqeqeq": ["error", "smart"], "no-alert": 2, "no-caller": 2, "no-eval": 2, "no-extend-native": 2, "no-extra-bind": 2, "no-floating-decimal":2, "no-fallthrough":2, "no-implicit-coercion":2, "no-implicit-globals":2, "no-implied-eval":2, "no-invalid-this":0, "no-iterator":2, "no-labels":2, "no-lone-blocks":2, "no-loop-func":2, "no-multi-spaces":2, "no-multi-str":2, "no-native-reassign":2, "no-new-func":2, "no-octal":2, "no-octal-escape": 2, "no-proto":2, "no-redeclare":2, "no-return-assign":0, "no-script-url":2, "no-self-assign":2, "no-self-compare":2, "no-sequences":2, "no-throw-literal":2, "no-unused-expressions":["error", { "allowTernary": true }], "no-useless-call":2, "no-useless-concat":2, "no-useless-escape":2, "no-void":2, "no-with":2, "vars-on-top":2, "wrap-iife":2, "no-shadow":2, "no-shadow-restricted-names":2, "no-undef":2, "no-undef-init":2, "no-undefined":0, "no-use-before-define":0, "array-bracket-spacing":["warn", "never", {"arraysInArrays":true}], "camelcase":1, "curly" : ["warn", "multi-line"], "comma-dangle":1, "comma-spacing":1, "comma-style":1, "computed-property-spacing":1, "consistent-this":2, "eol-last":1, "func-names":1, "indent":["warn", 2], "key-spacing":["error", { "beforeColon": true, "afterColon": true, "mode": "strict" }], "keyword-spacing": ["error", { "before": true, "after": true }], "max-depth":1, "max-len":["error", 120], "max-nested-callbacks":["error", 3], "max-params":["error", 3], "max-statements":["error", 25], "max-statements-per-line":["error", {"max":2}], "new-cap":1, "new-parens":1, "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }], "no-array-constructor":1, "no-bitwise":1, "no-continue":1, "no-lonely-if":1, "no-mixed-spaces-and-tabs":1, "no-multiple-empty-lines": ["warn", { "max": 2, "maxEOF": 1, "maxBOF": 0 }], "no-negated-condition":1, "no-nested-ternary":2, "no-new-object":1, "no-spaced-func":1, "no-trailing-spaces":1, "no-unneeded-ternary":2, "no-whitespace-before-property":1, "object-curly-spacing":["warn", "always"], "object-property-newline": ["warn", { "allowMultiplePropertiesPerLine": true }], "one-var": ["warn", { "uninitialized": "always", "initialized": "never" }], "one-var-declaration-per-line": ["warn", "initializations"], "operator-assignment": ["warn", "always"], "operator-linebreak": ["warn", "none"], "quotes": ["warn", "double"], "quote-props": ["warn", "as-needed"], "semi": ["error", "never"], "semi-spacing":1, "space-before-blocks":1, "space-before-function-paren":["warn", "never"], "space-infix-ops":1, "space-unary-ops":1, "spaced-comment": ["warn", "always"], "arrow-spacing":1, "no-confusing-arrow":1, "no-duplicate-imports":2, "no-new-symbol":2, "no-useless-computed-key":2, "no-useless-constructor":2, "no-useless-rename":2, "no-var":2, "object-shorthand":1, "prefer-arrow-callback":2, "prefer-const":1, "prefer-spread":1, "require-yield":2, "rest-spread-spacing": ["warn", "never"], "template-curly-spacing":1, "yield-star-spacing": ["warn", "after"] }, "globals" : { "expect" : true, "process": true, "sinon" : true } }