{
  "rules": {
    "adjacent-overload-signatures": true,
    "align": false,
    "array-type": [
      true,
      "generic"
    ],
    "arrow-parens": true,
    "arrow-return-shorthand": [true],
    "await-promise": true,
    "callable-types": true,
    "class-name": true,
    "comment-format": [
      true,
      "check-space",
      "check-uppercase"
    ],
    // :TODO: Enable this again & flesh out docs.
    "completed-docs": [false, {
      "classes": true,
      "enums": true,
      "interfaces": true
    }],
    "curly": true,
    "cyclomatic-complexity": false,
    "eofline": true,
    "forin": true,
    "import-spacing": true,
    "indent": [
      true,
      "spaces"
    ],
    "interface-name": [true, "never-prefix"],
    "interface-over-type-literal": true,
    "jsdoc-format": true,
    "label-position": true,
    "linebreak-style": [
      true,
      "LF"
    ],
    "max-classes-per-file": [false],
    "max-file-line-count": [false],
    "max-line-length": [true, 120],
    "match-default-export-name": true,
    "member-ordering": [
      true,
      {
        "order": [
          "public-static-field",
          "public-static-method",
          "protected-static-field",
          "protected-static-method",
          "private-static-field",
          "private-static-method",
          "public-instance-field",
          "protected-instance-field",
          "private-instance-field",
          "public-constructor",
          "protected-constructor",
          "private-constructor",
          "public-instance-method",
          "protected-instance-method",
          "private-instance-method"
        ]
      }
    ],
    "newline-before-return": true,
    "new-parens": true,
    "no-angle-bracket-type-assertion": true,
    "no-any": true,
    "no-arg": true,
    "no-bitwise": true,
    "no-boolean-literal-compare": true,
    "no-conditional-assignment": true,
    "no-consecutive-blank-lines": true,
    "no-console": true,
    "no-construct": true,
    "no-debugger": true,
    "no-default-export": true,
    "no-duplicate-super": true,
    "no-duplicate-variable": true,
    "no-empty": true,
    "no-empty-interface": true,
    "no-eval": true,
    "no-floating-promises": true,
    "no-for-in-array": true,
    "no-import-side-effect": true,
    "no-inferred-empty-object-type": true,
    "no-internal-module": true,
    "no-invalid-template-strings": true,
    "no-invalid-this": [
      true,
      "check-function-in-method"
    ],
    "no-magic-numbers": true,
    "no-mergeable-namespace": true,
    "no-misused-new": true,
    // Useful for type system exploits like nesting class/interface declarations.
    "no-namespace": false,
    "no-non-null-assertion": true,
    "no-null-keyword": true,
    "no-parameter-properties": true,
    "no-require-imports": true,
    "no-reference": true,
    "no-reference-import": true,
    "no-sparse-arrays": true,
    "no-string-literal": true,
    "no-string-throw": true,
    "no-switch-case-fall-through": true,
    "no-trailing-whitespace": true,
    "no-unbound-method": true,
    "no-unnecessary-callback-wrapper": false,
    "no-unnecessary-initializer": true,
    // Seems to be buggy.  Sample error: `Warning: Cannot read property 'some' of undefined`
    "no-unnecessary-qualifier": false,
    // False positives with merged declarations.
    "no-unsafe-any": false,
    "no-unsafe-finally": true,
    "no-unused-expression": true,
    "no-unused-variable": true,
    "no-use-before-declare": true,
    "no-var-keyword": true,
    "no-var-requires": true,
    "no-void-expression": true,
    "object-literal-key-quotes": [
      true,
      "as-needed"
    ],
    // Inconsistent, can make things hard to read.
    "object-literal-shorthand": false,
    "object-literal-sort-keys": false,
    "one-line": [
      true,
      "check-open-brace",
      "check-whitespace"
    ],
    "one-variable-per-declaration": true,
    // Exporting functions under namespaces is a clean alternative to static functions.
    "only-arrow-functions": false,
    "ordered-imports": [
      true,
      {
        "import-sources-order": "any",
        "named-imports-order": "case-insensitive"
      }
    ],
    "prefer-const": true,
    "prefer-for-of": true,
    "promise-function-async": false,
    // Sometimes when you implement interfaces you don't need `this`.
    "prefer-function-over-method": false,
    // Can sometimes make things hard to read.
    "prefer-method-signature": false,
    "prefer-template": true,
    "quotemark": [
      true,
      "single",
      "avoid-escape"
    ],
    "radix": true,
    "restrict-plus-operands": true,
    "return-undefined": true,
    "semicolon": [
      true,
      "always"
    ],
    "space-before-function-paren": [true, "never"],
    "strict-boolean-expressions": true,
    "strict-type-predicates": true,
    "switch-default": true,
    "trailing-comma": [
      true,
      {
        "multiline": "never",
        "singleline": "never"
      }
    ],
    "triple-equals": true,
    "typedef": [
      true,
      "call-signature",
      "arrow-call-signature",
      "parameter",
      "arrow-parameter",
      "property-declaration",
      "variable-declaration",
      "member-variable-declaration",
      "object-destructuring",
      "array-destructuring"
    ],
    "typedef-whitespace": [
      true,
      {
        "call-signature": "nospace",
        "index-signature": "nospace",
        "parameter": "nospace",
        "property-declaration": "nospace",
        "variable-declaration": "nospace"
      },
      {
        "call-signature": "onespace",
        "index-signature": "onespace",
        "parameter": "onespace",
        "property-declaration": "onespace",
        "variable-declaration": "onespace"
      }
    ],
    "typeof-compare": true,
    // Can make method bodies hard to read when a lot of the logic is spent on parsing.
    "unified-signatures": false,
    "use-isnan": true,
    "variable-name": [
      true,
      "check-format",
      "allow-trailing-underscore",
      "ban-keywords"
    ],
    "whitespace": [
      true,
      "check-branch",
      "check-decl",
      "check-operator",
      "check-module",
      "check-separator",
      "check-type",
      "check-preblock"
    ]
  }
}
