Glavin001/graphql-sequelize-crud

View on GitHub
tslint.json

Summary

Maintainability
Test Coverage
{
    "rulesDirectory": [
      "./node_modules/tslint-microsoft-contrib",
      "./node_modules/tslint-clean-code/dist/src"
    ],
    "extends": [],
    "rules": {
      "array-type": [
        true,
        "array"
      ],
      "arrow-return-shorthand": true,
      "await-promise": false,
      "adjacent-overload-signatures": false,
      "align": [
        false
      ],
      "arrow-parens": false,
      "ban": false,
      "callable-types": true,
      "chai-prefer-contains-to-index-of": true,
      "class-name": true,
      "comment-format": [
        true,
        "check-space"
      ],
      "completed-docs": [
        false
      ],
      "curly": true,
      "cyclomatic-complexity": [
        false
      ],
      "eofline": true,
      "export-name": true,
      "file-header": [
        false
      ],
      "forin": true,
      "function-name": true,
      "id-length": [
        true,
        [
          "_",
          "T"
        ]
      ],
      "import-blacklist": false,
      "import-name": [true, {
        "lodash": "_"
      }],
      "import-spacing": true,
      "indent": [
        true,
        "spaces",
        4
      ],
      "insecure-random": true,
      "interface-name": false,
      "interface-over-type-literal": true,
      "jquery-deferred-must-complete": true,
      "jsdoc-format": false,
      "label-position": true,
      "linebreak-style": [
        true,
        "LF"
      ],
      "max-classes-per-file": [
        true,
        2
      ],
      "max-file-line-count": [
        false,
        500
      ],
      "max-func-body-length": [
        false,
        20,
        {
          "ignore-parameters-to-function-regex": "describe"
        }
      ],
      "max-line-length": [
        true,
        120
      ],
      "max-func-args": [
        true,
        3
      ],
      "member-access": [true, "check-accessor"],
      "member-ordering": [
        true,
        {
          "order": [
            "public-static-field",
            "public-static-method",
            "public-instance-field",
            "public-constructor",
            "public-instance-method"
          ]
        }
      ],
      "missing-optional-annotation": true,
      "min-class-cohesion": false,
      "mocha-avoid-only": true,
      "mocha-no-side-effect-code": true,
      "mocha-unneeded-done": true,
      "new-parens": true,
      "newspaper-order": true,
      "no-angle-bracket-type-assertion": false,
      "no-any": false,
      "no-arg": true,
      "no-banned-terms": true,
      "no-bitwise": true,
      "no-boolean-literal-compare": false,
      "no-conditional-assignment": true,
      "no-consecutive-blank-lines": [
        true
      ],
      "no-console": [
        true,
        "debug",
        "info",
        "log",
        "time",
        "timeEnd",
        "trace"
      ],
      "no-constant-condition": true,
      "no-construct": true,
      "no-control-regex": true,
      "no-debugger": true,
      "no-default-export": true,
      "no-delete-expression": true,
      "no-disable-auto-sanitization": true,
      "no-document-domain": true,
      "no-document-write": true,
      "no-duplicate-case": true,
      "no-duplicate-parameter-names": true,
      "no-duplicate-super": true,
      "no-duplicate-variable": true,
      "no-duplicate-imports": true,
      "no-empty": true,
      "no-empty-interface": true,
      "no-empty-interfaces": true,
      "no-empty-line-after-opening-brace": false,
      "no-eval": true,
      "no-exec-script": true,
      "no-flag-args": true,
      "no-floating-promises": false,
      "no-for-in": true,
      "no-for-in-array": false,
      "no-for-each-push": true,
      "no-function-constructor-with-string-args": true,
      "no-function-expression": true,
      "no-http-string": true,
      "no-import-side-effect": true,
      "no-increment-decrement": true,
      "no-inferrable-types": false,
      "no-inferred-empty-object-type": false,
      "no-inner-html": true,
      "no-internal-module": false,
      "no-invalid-regexp": true,
      "no-invalid-template-strings": true,
      "no-jquery-raw-elements": true,
      "no-magic-numbers": [true],
      "no-mergeable-namespace": false,
      "no-missing-visibility-modifiers": true,
      "no-misused-new": true,
      "no-multiline-string": [
        true
      ],
      "no-multiple-var-decl": true,
      "no-namespace": false,
      "no-null-keyword": false,
      "no-octal-literal": true,
      "no-parameter-properties": false,
      "no-reference": true,
      "no-reference-import": true,
      "no-regex-spaces": true,
      "no-require-imports": true,
      "no-reserved-keywords": false,
      "no-shadowed-variable": true,
      "no-single-line-block-comment": true,
      "no-sparse-arrays": true,
      "no-stateless-class": true,
      "no-string-based-set-immediate": true,
      "no-string-based-set-interval": true,
      "no-string-based-set-timeout": true,
      "no-string-literal": true,
      "no-string-throw": true,
      "no-switch-case-fall-through": true,
      "no-trailing-whitespace": true,
      "no-typeof-undefined": true,
      "no-this-assignment": [true, { "allow-destructuring": true}],
      "no-unbound-method": false,
      "no-unnecessary-bind": true,
      "no-unnecessary-callback-wrapper": true,
      "no-unnecessary-field-initialization": true,
      "no-unnecessary-initializer": true,
      "no-unnecessary-local-variable": true,
      "no-unnecessary-override": true,
      "no-unnecessary-qualifier": false,
      "no-unnecessary-semicolons": true,
      "no-unsafe-any": false,
      "no-unsafe-finally": true,
      "no-unsupported-browser-code": false,
      "no-unused-expression": true,
      "no-var-keyword": true,
      "no-var-requires": true,
      "no-var-self": true,
      "no-void-expression": false,
      "no-with-statement": true,
      "non-literal-require": true,
      "object-literal-key-quotes": [
        true,
        "as-needed"
      ],
      "object-literal-shorthand": true,
      "object-literal-sort-keys": false,
      "one-line": [
        true,
        "check-open-brace",
        "check-catch",
        "check-else",
        "check-whitespace"
      ],
      "one-variable-per-declaration": true,
      "only-arrow-functions": [
        true,
        "allow-declarations",
        "allow-named-functions"
      ],
      "ordered-imports": false,
      "possible-timing-attack": true,
      "prefer-array-literal": true,
      "prefer-const": true,
      "prefer-for-of": false,
      "prefer-function-over-method": false,
      "prefer-method-signature": true,
      "prefer-template": true,
      "prefer-type-cast": false,
      "prefer-dry-conditionals": [true, 2],
      "prefer-switch": [true, {"min-cases": 3}],
      "prefer-object-spread": true,
      "strict-type-predicates": false,
      "promise-function-async": false,
      "promise-must-complete": true,
      "radix": false,
      "react-a11y-anchors": true,
      "react-a11y-aria-unsupported-elements": true,
      "react-a11y-event-has-role": true,
      "react-a11y-image-button-has-alt": true,
      "react-a11y-img-has-alt": true,
      "react-a11y-lang": true,
      "react-a11y-meta": true,
      "react-a11y-props": true,
      "react-a11y-proptypes": true,
      "react-a11y-role": true,
      "react-a11y-role-has-required-aria-props": true,
      "react-a11y-role-supports-aria-props": true,
      "react-a11y-tabindex-no-positive": true,
      "react-a11y-titles": true,
      "react-anchor-blank-noopener": true,
      "react-iframe-missing-sandbox": true,
      "react-no-dangerous-html": true,
      "react-this-binding-issue": true,
      "react-tsx-curly-spacing": true,
      "react-unused-props-and-state": true,
      "restrict-plus-operands": false,
      "semicolon": [
        true,
        "ignore-bound-class-methods"
      ],
      "space-before-function-paren": [true, {
        "anonymous": "never",
        "named": "never",
        "asyncArrow": "always"
      }],
      "strict-boolean-expressions": false,
      "switch-default": false,
      "trailing-comma": [
        true,
        {
          "singleline": "never",
          "multiline": "ignore"
        }
      ],
      "triple-equals": [
        true,
        "allow-null-check"
      ],
      "try-catch-first": false,
      "typedef": [
        true,
        "parameter",
        "property-declaration",
        "member-variable-declaration"
      ],
      "typedef-whitespace": [
        false
      ],
      "typeof-compare": true,
      "unified-signatures": true,
      "use-isnan": true,
      "use-named-parameter": true,
      "valid-typeof": true,
      "variable-name": true,
      "whitespace": [
        true,
        "check-branch",
        "check-decl",
        "check-operator",
        "check-separator",
        "check-type"
      ],
      "no-useless-files": true,
      "no-map-without-usage": true,
      "no-complex-conditionals": [
        true,
        2
      ],
      "underscore-consistent-invocation": [true, {
        "style": "static"
      }]
    }
  }