|
| 1 | +{ |
| 2 | + "rules": { |
| 3 | + "adjacent-overload-signatures": true, |
| 4 | + "ban-ts-ignore": true, |
| 5 | + "ban-types": [ |
| 6 | + true, |
| 7 | + ["Object", "Use {} instead."], |
| 8 | + ["String", "Use string instead"] |
| 9 | + ], |
| 10 | + "member-access": true, |
| 11 | + "member-ordering": [false], |
| 12 | + "no-any": true, |
| 13 | + "no-empty-interface": true, |
| 14 | + "no-import-side-effect": true, |
| 15 | + "no-inferrable-types": true, |
| 16 | + "no-internal-module": true, |
| 17 | + "no-magic-numbers": true, |
| 18 | + "no-namespace": [true, "allow-declarations"], |
| 19 | + "no-non-null-assertion": true, |
| 20 | + "no-reference": true, |
| 21 | + "no-unnecessary-type-assertion": true, |
| 22 | + "no-var-requires": true, |
| 23 | + "only-arrow-functions": [ |
| 24 | + true, |
| 25 | + "allow-declarations", |
| 26 | + "allow-named-functions" |
| 27 | + ], |
| 28 | + "prefer-for-of": true, |
| 29 | + "promise-function-async": true, |
| 30 | + "typedef": [false], |
| 31 | + "typedef-whitespace": [true], |
| 32 | + "unified-signatures": true, |
| 33 | + "await-promise": true, |
| 34 | + "ban-comma-operator": true, |
| 35 | + "ban": [true, "eval"], |
| 36 | + "curly": true, |
| 37 | + "forin": true, |
| 38 | + "function-constructor": true, |
| 39 | + "import-blacklist": true, |
| 40 | + "label-position": true, |
| 41 | + "no-arg": true, |
| 42 | + "no-bitwise": true, |
| 43 | + "no-conditional-assignment": true, |
| 44 | + "no-console": [true], |
| 45 | + "no-construct": true, |
| 46 | + "no-debugger": true, |
| 47 | + "no-duplicate-super": true, |
| 48 | + "no-duplicate-switch-case": true, |
| 49 | + "no-duplicate-variable": true, |
| 50 | + "no-dynamic-delete": true, |
| 51 | + "no-empty": true, |
| 52 | + "no-eval": true, |
| 53 | + "no-floating-promises": true, |
| 54 | + "no-for-in-array": true, |
| 55 | + "no-implicit-dependencies": [true, "dev"], |
| 56 | + "no-inferred-empty-object-type": true, |
| 57 | + "no-invalid-template-strings": true, |
| 58 | + "no-invalid-this": true, |
| 59 | + "no-misused-new": true, |
| 60 | + "no-null-keyword": false, |
| 61 | + "no-object-literal-type-assertion": true, |
| 62 | + "no-return-await": true, |
| 63 | + "no-shadowed-variable": true, |
| 64 | + "no-sparse-arrays": true, |
| 65 | + "no-string-literal": true, |
| 66 | + "no-string-throw": true, |
| 67 | + "no-submodule-imports": true, |
| 68 | + "no-switch-case-fall-through": true, |
| 69 | + "no-this-assignment": true, |
| 70 | + "no-unbound-method": true, |
| 71 | + "no-unnecessary-class": true, |
| 72 | + "no-unsafe-any": true, |
| 73 | + "no-unsafe-finally": true, |
| 74 | + "no-unused-expression": true, |
| 75 | + "no-unused-variable": true, |
| 76 | + "no-var-keyword": true, |
| 77 | + "no-void-expression": true, |
| 78 | + "prefer-conditional-expression": true, |
| 79 | + "prefer-object-spread": true, |
| 80 | + "radix": true, |
| 81 | + "restrict-plus-operands": true, |
| 82 | + "strict-boolean-expressions": true, |
| 83 | + "strict-type-predicates": true, |
| 84 | + "switch-default": true, |
| 85 | + "triple-equals": true, |
| 86 | + "typeof-compare": true, |
| 87 | + "use-default-type-parameter": true, |
| 88 | + "use-isnan": true, |
| 89 | + "cyclomatic-complexity": true, |
| 90 | + "eofline": true, |
| 91 | + "indent": [true, "spaces", 2], |
| 92 | + "linebreak-style": [true, "LF"], |
| 93 | + "max-classes-per-file": [true, 1], |
| 94 | + "max-file-line-count": [true, 100], |
| 95 | + "max-line-length": [true, 100], |
| 96 | + "no-default-export": true, |
| 97 | + "no-default-import": [true], |
| 98 | + "no-duplicate-imports": true, |
| 99 | + "no-mergeable-namespace": true, |
| 100 | + "no-require-imports": true, |
| 101 | + "object-literal-sort-keys": true, |
| 102 | + "prefer-const": true, |
| 103 | + "prefer-readonly": true, |
| 104 | + "trailing-comma": [ |
| 105 | + true, |
| 106 | + { |
| 107 | + "objects": "always", |
| 108 | + "arrays": "always", |
| 109 | + "multiline": "always", |
| 110 | + "singleline": "never", |
| 111 | + "functions": "never", |
| 112 | + "typeLiterals": "ignore" |
| 113 | + } |
| 114 | + ], |
| 115 | + "align": [false], |
| 116 | + "array-type": [true, "array"], |
| 117 | + "arrow-parens": [true, "ban-single-arg-parens"], |
| 118 | + "arrow-return-shorthand": [true, "multiline"], |
| 119 | + "binary-expression-operand-order": true, |
| 120 | + "callable-types": true, |
| 121 | + "class-name": true, |
| 122 | + "comment-format": [true, "check-space", "check-uppercase"], |
| 123 | + "comment-type": [true, "doc", "singleline", "multiline"], |
| 124 | + "completed-docs": [false], |
| 125 | + "encoding": true, |
| 126 | + "file-header": [false], |
| 127 | + "file-name-casing": [true, { ".tsx": "pascal-case", ".ts": "camel-case" }], |
| 128 | + "import-spacing": true, |
| 129 | + "increment-decrement": true, |
| 130 | + "interface-name": [true, "never-prefix"], |
| 131 | + "interface-over-type-literal": true, |
| 132 | + "jsdoc-format": true, |
| 133 | + "match-default-export-name": true, |
| 134 | + "newline-before-return": true, |
| 135 | + "newline-per-chained-call": true, |
| 136 | + "new-parens": true, |
| 137 | + "no-angle-bracket-type-assertion": true, |
| 138 | + "no-boolean-literal-compare": true, |
| 139 | + "no-consecutive-blank-lines": true, |
| 140 | + "no-irregular-whitespace": true, |
| 141 | + "no-parameter-properties": true, |
| 142 | + "no-redundant-jsdoc": true, |
| 143 | + "no-reference-import": true, |
| 144 | + "no-trailing-whitespace": true, |
| 145 | + "no-unnecessary-callback-wrapper": true, |
| 146 | + "no-unnecessary-initializer": true, |
| 147 | + "no-unnecessary-qualifier": true, |
| 148 | + "number-literal-format": true, |
| 149 | + "object-literal-key-quotes": [true, "as-needed"], |
| 150 | + "object-literal-shorthand": true, |
| 151 | + "one-line": [ |
| 152 | + true, |
| 153 | + "check-catch", |
| 154 | + "check-finally", |
| 155 | + "check-else", |
| 156 | + "check-open-brace", |
| 157 | + "check-whitespace" |
| 158 | + ], |
| 159 | + "one-variable-per-declaration": [ |
| 160 | + true |
| 161 | + ], |
| 162 | + "ordered-imports": [ |
| 163 | + true |
| 164 | + ], |
| 165 | + "prefer-function-over-method": true, |
| 166 | + "prefer-method-signature": false, |
| 167 | + "prefer-switch": [true, {"min-cases": 2}], |
| 168 | + "return-undefined": true, |
| 169 | + "prefer-template": true, |
| 170 | + "prefer-while": true, |
| 171 | + "quotemark": [ |
| 172 | + true, |
| 173 | + "single", |
| 174 | + "jsx-double", |
| 175 | + "avoid-escape" |
| 176 | + ], |
| 177 | + "semicolon": [ |
| 178 | + true, |
| 179 | + "always" |
| 180 | + ], |
| 181 | + "space-before-function-paren": false, |
| 182 | + "switch-final-break": true, |
| 183 | + "type-literal-delimiter": true, |
| 184 | + "unnecessary-bind": true, |
| 185 | + "variable-name": [ |
| 186 | + true, |
| 187 | + "check-format", |
| 188 | + "ban-keywords", |
| 189 | + "allow-leading-underscore" |
| 190 | + ], |
| 191 | + "whitespace": [ |
| 192 | + true, |
| 193 | + "check-branch", |
| 194 | + "check-decl", |
| 195 | + "check-operator", |
| 196 | + "check-module", |
| 197 | + "check-separator", |
| 198 | + "check-type", |
| 199 | + "check-typecast", |
| 200 | + "check-preblock" |
| 201 | + ] |
| 202 | + } |
| 203 | +} |
0 commit comments