tslint.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. {
  2. "defaultSeverity": "error",
  3. "extends": [],
  4. "rules": {
  5. "adjacent-overload-signatures": true,
  6. "align": {
  7. "options": [
  8. "parameters",
  9. "statements"
  10. ]
  11. },
  12. "arrow-return-shorthand": true,
  13. "ban-types": {
  14. "options": [
  15. [
  16. "Object",
  17. "Avoid using the `Object` type. Did you mean `object`?"
  18. ],
  19. [
  20. "Function",
  21. "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
  22. ],
  23. [
  24. "Boolean",
  25. "Avoid using the `Boolean` type. Did you mean `boolean`?"
  26. ],
  27. [
  28. "Number",
  29. "Avoid using the `Number` type. Did you mean `number`?"
  30. ],
  31. [
  32. "String",
  33. "Avoid using the `String` type. Did you mean `string`?"
  34. ],
  35. [
  36. "Symbol",
  37. "Avoid using the `Symbol` type. Did you mean `symbol`?"
  38. ]
  39. ]
  40. },
  41. "comment-format": {
  42. "options": [
  43. "check-space"
  44. ]
  45. },
  46. "curly": {
  47. "options": [
  48. "ignore-same-line"
  49. ]
  50. },
  51. "cyclomatic-complexity": false,
  52. "import-spacing": true,
  53. "indent": {
  54. "options": [
  55. "spaces"
  56. ]
  57. },
  58. "interface-over-type-literal": true,
  59. "member-ordering": [
  60. true,
  61. {
  62. "order": [
  63. "public-static-field",
  64. "public-instance-field",
  65. "private-static-field",
  66. "private-instance-field",
  67. "public-constructor",
  68. "private-constructor",
  69. "public-instance-method",
  70. "protected-instance-method",
  71. "private-instance-method"
  72. ],
  73. "alphabetize": false
  74. }
  75. ],
  76. "no-angle-bracket-type-assertion": true,
  77. "no-arg": true,
  78. "no-conditional-assignment": true,
  79. "no-debugger": true,
  80. "no-duplicate-super": true,
  81. "no-eval": true,
  82. "no-internal-module": true,
  83. "no-misused-new": true,
  84. "no-reference-import": true,
  85. "no-string-literal": true,
  86. "no-string-throw": true,
  87. "no-unnecessary-initializer": true,
  88. "no-unsafe-finally": true,
  89. "no-unused-expression": true,
  90. "no-use-before-declare": false,
  91. "no-var-keyword": true,
  92. "no-var-requires": true,
  93. "one-line": {
  94. "options": [
  95. "check-catch",
  96. "check-else",
  97. "check-finally",
  98. "check-open-brace",
  99. "check-whitespace"
  100. ]
  101. },
  102. "one-variable-per-declaration": {
  103. "options": [
  104. "ignore-for-loop"
  105. ]
  106. },
  107. "ordered-imports": {
  108. "options": {
  109. "import-sources-order": "case-insensitive",
  110. "module-source-path": "full",
  111. "named-imports-order": "case-insensitive"
  112. }
  113. },
  114. "prefer-const": true,
  115. "prefer-for-of": false,
  116. "quotemark": {
  117. "options": [
  118. "double",
  119. "avoid-escape"
  120. ]
  121. },
  122. "radix": true,
  123. "semicolon": {
  124. "options": [
  125. "always"
  126. ]
  127. },
  128. "space-before-function-paren": {
  129. "options": {
  130. "anonymous": "never",
  131. "asyncArrow": "always",
  132. "constructor": "never",
  133. "method": "never",
  134. "named": "never"
  135. }
  136. },
  137. "trailing-comma": {
  138. "options": {
  139. "esSpecCompliant": true,
  140. "multiline": {
  141. "objects": "always",
  142. "arrays": "always",
  143. "functions": "always",
  144. "typeLiterals": "always"
  145. },
  146. "singleline": "never"
  147. }
  148. },
  149. "triple-equals": {
  150. "options": [
  151. "allow-null-check"
  152. ]
  153. },
  154. "typedef": false,
  155. "typedef-whitespace": {
  156. "options": [
  157. {
  158. "call-signature": "nospace",
  159. "index-signature": "nospace",
  160. "parameter": "nospace",
  161. "property-declaration": "nospace",
  162. "variable-declaration": "nospace"
  163. },
  164. {
  165. "call-signature": "onespace",
  166. "index-signature": "onespace",
  167. "parameter": "onespace",
  168. "property-declaration": "onespace",
  169. "variable-declaration": "onespace"
  170. }
  171. ]
  172. },
  173. "typeof-compare": false,
  174. "unified-signatures": true,
  175. "use-isnan": true,
  176. "whitespace": {
  177. "options": [
  178. "check-branch",
  179. "check-decl",
  180. "check-operator",
  181. "check-separator",
  182. "check-type",
  183. "check-typecast"
  184. ]
  185. }
  186. },
  187. "jsRules": {},
  188. "rulesDirectory": [],
  189. "no-var-requires": false,
  190. "trailing-comma": [
  191. true,
  192. {
  193. "multiline": {
  194. "objects": "always",
  195. "arrays": "always",
  196. "functions": "always",
  197. "typeLiterals": "ignore"
  198. },
  199. "esSpecCompliant": true
  200. }
  201. ],
  202. "no-unused-expression": [
  203. true,
  204. "allow-fast-null-checks"
  205. ]
  206. }