salieri/snapsnap

View on GitHub
.eslintrc.json

Summary

Maintainability
Test Coverage
{
  "parser": "@typescript-eslint/parser",
  "env": {
    "browser": true,
    "es6": true,
    "node": true,
    "jest": true
  },
    "extends": [
      "plugin:@typescript-eslint/recommended",
      "prettier",
      "eslint-config-airbnb-base"
    ],
  "parserOptions": {
    "ecmaVersion": 2018,
    "sourceType": "module"
  },
  "settings": {
    "import/resolver": {
      "node": {
        "extensions": [".ts", ".js"]
      }
    }
  },
  "rules": {
      "trailing-comma"              : 0,
      "import-name"                 : 0,
    "no-multiple-empty-lines"     : [2, {"max": 2, "maxEOF": 2, "maxBOF": 1}],
    "no-multi-spaces"             : 0,
    "max-len"                     : [2, 140],
    "class-methods-use-this"      : 0,
    "prefer-destructuring"        : 0,
    "no-bitwise"                  : 0,

    "import/prefer-default-export": 0,
    "import/extensions": [2, { "js": "never", "ts": "never" }],

    "@typescript-eslint/explicit-function-return-type": [2, {"allowExpressions": true, "allowTypedFunctionExpressions": true}],
    "@typescript-eslint/member-delimiter-style": [2],
    "@typescript-eslint/no-explicit-any": 0,

    "max-lines": [2, {"max": 400}],
    "max-params": [2, {"max": 5}],
    "max-statements": [2, {"max": 12}],
    "max-depth": [2, {"max":  4}],
    "max-nested-callbacks": [2, {"max": 4}],
    "complexity": [2, {"max":  10}]
  }
}