krulik
9/4/2017 - 8:43 AM

eslint

eslint

{
    "rules": {
      "no-case-declarations": 2,
      "no-caller": 2,
      "no-class-assign": 2,
      "no-cond-assign": 2,
      "no-console": 1,
      "no-const-assign": 2,
      "no-constant-condition": 2,
      "no-control-regex": 2,
      "no-debugger": 2,
      "no-dupe-args": 2,
      "no-dupe-class-members": 2,
      "no-dupe-keys": 2,
      "no-duplicate-case": 2,
      "no-empty": [2, { "allowEmptyCatch": true }],
      "no-use-before-define": [2, { "functions": false }],
      "no-undef": [2, { "typeof": true }],
      "no-unused-vars": [2, {"args": "none"}],
      "no-empty-character-class": 2,
      "no-empty-pattern": 2,
      "no-ex-assign": 2,
      "no-extra-bind": 2,
      "no-extra-boolean-cast": 2,
      "no-extra-label": 2,
      "no-extra-semi": 2,
      "no-func-assign": 2,
      "no-global-assign": 2,
      "no-implicit-globals": 2,
      "no-inner-declarations": 2,
      "no-invalid-regexp": 2,
      "no-irregular-whitespace": 2,
      "no-labels": 2,
      "no-lone-blocks": 2,
      "no-lonely-if": 2,
      "no-magic-numbers": [2, { "ignoreArrayIndexes": true, "ignore": [0, 1, -1] }],
      "no-mixed-spaces-and-tabs": 2,
      "no-multi-spaces": 2,
      "no-native-reassign": 2,
      "no-nested-ternary": 1,
      "no-new-object": 2,
      "no-new-symbol": 2,
      "no-new-wrappers": 2,
      "no-obj-calls": 2,
      "no-proto": 2,
      "no-redeclare": 2,
      "no-return-assign": 2,
      "no-script-url": 2,
      "no-self-assign": 2,
      "no-self-compare": 2,
      "no-trailing-spaces": [2, { "skipBlankLines": true }],
      "no-throw-literal": 2,
      "no-unexpected-multiline": 2,
      "no-unmodified-loop-condition": 1,
      "no-unneeded-ternary": 2,
      "no-unreachable": 2,
      "no-unsafe-finally": 2,
      "no-unsafe-negation": 2,
      "no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }],
      "no-useless-call": 2,
      "no-useless-computed-key": 2,
      "no-useless-concat": 2,
      "no-useless-constructor": 2,
      "no-useless-escape": 2,
      "no-useless-rename": 2,
      "no-useless-return": 2,
      "no-void": 2,
      "array-bracket-spacing": 2,
      "array-callback-return": 2,
      "block-spacing": 2,
      "brace-style": [2, "1tbs", { "allowSingleLine": true }],
      "comma-dangle": 2,
      "comma-spacing": 2,
      "complexity": 1,
      "computed-property-spacing": 2,
      "consistent-this": [2, "self"],
      "curly": 2,
      "func-call-spacing": 2,
      "func-name-matching": 2,
      "indent": [2, 2,  { "SwitchCase": 1 }],
      "key-spacing": [2, { "mode": "minimum" }],
      "keyword-spacing": 2,
      "linebreak-style": 2,
      "max-depth": [2, 6],
      "max-len": [1, {"ignoreComments": true, "code": 150}],
      "max-lines": [1, 1000],
      "max-nested-callbacks": [2, 6],
      "max-statements": [1, 80],
      "max-statements-per-line": [2, {"max": 2}],
      "new-cap": 1,
      "new-parens": 2,
      "object-curly-spacing": 2,
      "quotes": [2, "single"],
      "semi": 2,
      "semi-spacing": 2,
      "space-before-blocks": 2,
      "space-before-function-paren": [2, "never"],
      "space-in-parens": [2, "never"],
      "strict": 2,
      "use-isnan": 2,
      "valid-typeof": 2,
      "wrap-iife": 2
    },
    "globals": {
    },
    "env": {
      "node": true,
      "es6": true,
      "jest": true
    },
    "parserOptions": {
      "ecmaVersion": 2017
    }
  }