github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/tslint.json (about)

     1  {
     2    "rules": {
     3      "align": [
     4        true,
     5        "parameters",
     6        "arguments",
     7        "statements"
     8      ],
     9      "ban": false,
    10      "class-name": true,
    11      "comment-format": [
    12        true,
    13        "check-space"
    14      ],
    15      "curly": true,
    16      "eofline": true,
    17      "forin": true,
    18      "indent": [
    19        true,
    20        "spaces"
    21      ],
    22      "interface-name": false,
    23      "jsdoc-format": true,
    24      "label-position": true,
    25      "max-line-length": [
    26        false,
    27        140
    28      ],
    29      "member-ordering": [
    30        true,
    31        "public-before-private",
    32        "static-before-instance",
    33        "variables-before-functions"
    34      ],
    35      "no-any": false,
    36      "no-arg": true,
    37      "no-bitwise": true,
    38      "no-console": [
    39        true,
    40        "debug",
    41        "info",
    42        "time",
    43        "timeEnd",
    44        "trace"
    45      ],
    46      "no-consecutive-blank-lines": true,
    47      "no-construct": true,
    48      "no-parameter-properties": false,
    49      "no-debugger": true,
    50      "no-duplicate-variable": true,
    51      "no-shadowed-variable": true,
    52      "no-empty": false,
    53      "no-eval": true,
    54      "no-require-imports": false,
    55      "no-string-literal": true,
    56      "no-switch-case-fall-through": true,
    57      "trailing-comma": [
    58        true,
    59        {
    60          "multiline": "always",
    61          "singleline": "never"
    62        }
    63      ],
    64      "no-trailing-whitespace": true,
    65      "no-unused-expression": true,
    66      "no-use-before-declare": false,
    67      "no-var-keyword": true,
    68      "no-var-requires": true,
    69      "one-line": [
    70        true,
    71        "check-catch",
    72        "check-else",
    73        "check-open-brace",
    74        "check-whitespace"
    75      ],
    76      "prefer-const": [
    77        true,
    78        {
    79          "destructuring": "all"
    80        }
    81      ],
    82      "quotemark": [
    83        true,
    84        "double"
    85      ],
    86      "radix": true,
    87      "semicolon": true,
    88      "switch-default": true,
    89      "triple-equals": [
    90        true,
    91        "allow-null-check"
    92      ],
    93      "typedef": [
    94        false,
    95        "call-signature",
    96        "parameter",
    97        "property-declaration"
    98      ],
    99      "typedef-whitespace": [
   100        true,
   101        {
   102          "call-signature": "nospace",
   103          "index-signature": "nospace",
   104          "parameter": "nospace",
   105          "property-declaration": "nospace",
   106          "variable-declaration": "nospace"
   107        }
   108      ],
   109      "variable-name": [
   110        true,
   111        "allow-leading-underscore",
   112        "allow-pascal-case"
   113      ],
   114      "whitespace": [
   115        true,
   116        "check-branch",
   117        "check-decl",
   118        "check-operator",
   119        "check-separator",
   120        "check-type"
   121      ]
   122    },
   123    "jsRules": {
   124      "align": {
   125        "options": [
   126          "parameters",
   127          "statements"
   128        ]
   129      },
   130      "class-name": true,
   131      "curly": true,
   132      "eofline": true,
   133      "forin": true,
   134      "import-spacing": true,
   135      "indent": {
   136        "options": [
   137          "spaces"
   138        ]
   139      },
   140      "jsdoc-format": true,
   141      "label-position": true,
   142      "max-line-length": {
   143        "options": [
   144          120
   145        ]
   146      },
   147      "new-parens": true,
   148      "no-arg": true,
   149      "no-bitwise": true,
   150      "no-conditional-assignment": true,
   151      "no-consecutive-blank-lines": true,
   152      "no-console": true,
   153      "no-construct": true,
   154      "no-debugger": true,
   155      "no-duplicate-super": true,
   156      "no-duplicate-variable": true,
   157      "no-empty": true,
   158      "no-eval": true,
   159      "no-reference": true,
   160      "no-shadowed-variable": true,
   161      "no-string-literal": true,
   162      "no-string-throw": true,
   163      "no-switch-case-fall-through": false,
   164      "no-trailing-whitespace": true,
   165      "no-unused-expression": true,
   166      "no-use-before-declare": false,
   167      "object-literal-sort-keys": true,
   168      "one-line": {
   169        "options": [
   170          "check-catch",
   171          "check-else",
   172          "check-finally",
   173          "check-open-brace",
   174          "check-whitespace"
   175        ]
   176      },
   177      "one-variable-per-declaration": {
   178        "options": [
   179          "ignore-for-loop"
   180        ]
   181      },
   182      "quotemark": {
   183        "options": [
   184          "double",
   185          "avoid-escape"
   186        ]
   187      },
   188      "radix": true,
   189      "semicolon": {
   190        "options": [
   191          "always"
   192        ]
   193      },
   194      "space-before-function-paren": {
   195        "options": {
   196          "anonymous": "never",
   197          "asyncArrow": "always",
   198          "constructor": "never",
   199          "method": "never",
   200          "named": "never"
   201        }
   202      },
   203      "trailing-comma": {
   204        "options": {
   205          "multiline": "always",
   206          "singleline": "never"
   207        }
   208      },
   209      "triple-equals": {
   210        "options": [
   211          "allow-null-check"
   212        ]
   213      },
   214      "use-isnan": true,
   215      "variable-name": {
   216        "options": [
   217          "ban-keywords",
   218          "check-format",
   219          "allow-pascal-case"
   220        ]
   221      },
   222      "whitespace": {
   223        "options": [
   224          "check-branch",
   225          "check-decl",
   226          "check-operator",
   227          "check-separator",
   228          "check-type",
   229          "check-typecast"
   230        ]
   231      }
   232    }
   233  }