tslint.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. {
  2. "extends": [
  3. "tslint-eslint-rules"
  4. ],
  5. "rules": {
  6. "align": [
  7. true,
  8. "parameters",
  9. "statements"
  10. ],
  11. "array-bracket-spacing": [true, "never"],
  12. "ban": [
  13. true,
  14. [ "_", "forEach" ],
  15. [ "_", "each" ],
  16. [ "$", "each" ],
  17. [ "angular", "forEach" ]
  18. ],
  19. "block-spacing": [true, "always"],
  20. "brace-style": [true, "1tbs"],
  21. "class-name": true,
  22. "comment-format": [
  23. true,
  24. "check-space",
  25. "check-lowercase"
  26. ],
  27. "curly": true,
  28. "eofline": true,
  29. "forin": true,
  30. "indent": [
  31. true,
  32. "spaces"
  33. ],
  34. "interface-name": [
  35. true,
  36. "always-prefix"
  37. ],
  38. "import-spacing": true,
  39. "jsdoc-format": true,
  40. "label-position": true,
  41. "max-line-length": false,
  42. "member-access": true,
  43. "member-ordering": [
  44. true,
  45. { "order": "fields-first" }
  46. ],
  47. "new-parens": false,
  48. "no-angle-bracket-type-assertion": false,
  49. "no-any": false,
  50. "no-arg": true,
  51. "no-bitwise": true,
  52. "no-conditional-assignment": true,
  53. "no-consecutive-blank-lines": true,
  54. "no-console": [
  55. true,
  56. "debug",
  57. "info",
  58. "time",
  59. "timeEnd",
  60. "trace"
  61. ],
  62. "no-constant-condition": true,
  63. "no-construct": true,
  64. "no-control-regex": true,
  65. "no-debugger": true,
  66. "no-default-export": true,
  67. "no-duplicate-case": true,
  68. "no-duplicate-variable": true,
  69. "no-empty": false,
  70. "no-empty-character-class": true,
  71. "no-empty-interface": true,
  72. "no-eval": false,
  73. "no-ex-assign": true,
  74. "no-extra-boolean-cast": true,
  75. "no-extra-semi": true,
  76. "no-inferrable-types": false,
  77. "no-inner-declarations": [true, "both"],
  78. "no-internal-module": true,
  79. "no-invalid-regexp": true,
  80. "no-invalid-this": true,
  81. "no-misused-new": true,
  82. "no-multi-spaces": [true],
  83. "no-null-keyword": false,
  84. "no-parameter-properties": true,
  85. "no-reference": true,
  86. "no-reference-import": true,
  87. "no-regex-spaces": true,
  88. "no-require-imports": false,
  89. "no-shadowed-variable": true,
  90. "no-string-literal": true,
  91. "no-string-throw": true,
  92. "no-switch-case-fall-through": false,
  93. "no-trailing-whitespace": false,
  94. "no-unnecessary-callback-wrapper": true,
  95. "no-unexpected-multiline": true,
  96. "no-unused-expression": true,
  97. "no-use-before-declare": true,
  98. "no-var-keyword": true,
  99. "no-var-requires": false,
  100. "object-curly-spacing": [true, "always"],
  101. "object-literal-sort-keys": false,
  102. "one-line": [
  103. true,
  104. "check-open-brace",
  105. "check-catch",
  106. "check-else",
  107. "check-finally",
  108. "check-whitespace"
  109. ],
  110. "one-variable-per-declaration": false,
  111. "only-arrow-functions": [true, "allow-declarations"],
  112. "prefer-const": true,
  113. "prefer-template": true,
  114. "quotemark": false,
  115. "radix": true,
  116. "semicolon": [true, "always"],
  117. "space-before-function-paren": true,
  118. "space-in-parens": [true, "never"],
  119. "switch-default": false,
  120. "ter-arrow-parens": true,
  121. "ter-func-call-spacing": [true, "never"],
  122. "ter-indent": [
  123. true,
  124. 4,
  125. {
  126. "ArrayExpression": 1,
  127. "CallExpression": { "arguments": "first" },
  128. "FunctionDeclaration": { "body": 1, "parameters": 1 },
  129. "FunctionExpression": { "body": 1, "parameters": 1 },
  130. "MemberExpression": 1,
  131. "ObjectExpression": 1,
  132. "outerIIFEBody": 1,
  133. "SwitchCase": 1,
  134. "VariableDeclarator": 1
  135. }
  136. ],
  137. "ter-no-irregular-whitespace": [true],
  138. "ter-no-sparse-arrays": [true],
  139. "trailing-comma": false,
  140. "triple-equals": [
  141. true,
  142. "allow-null-check",
  143. "allow-undefined-check"
  144. ],
  145. "typedef": [
  146. true,
  147. "call-signature",
  148. "parameter",
  149. "arrow-parameter",
  150. "property-declaration",
  151. "variable-declaration",
  152. "member-variable-declaration"
  153. ],
  154. "typedef-whitespace": [
  155. true,
  156. {
  157. "call-signature": "nospace",
  158. "index-signature": "nospace",
  159. "parameter": "nospace",
  160. "property-declaration": "nospace",
  161. "variable-declaration": "nospace"
  162. },
  163. {
  164. "call-signature": "space",
  165. "index-signature": "space",
  166. "parameter": "space",
  167. "property-declaration": "space",
  168. "variable-declaration": "space"
  169. }
  170. ],
  171. "typeof-compare": true,
  172. "unified-signatures": true,
  173. "use-isnan": true,
  174. "valid-jsdoc": [false, {
  175. "requireReturn": false,
  176. "requireParamDescription": false,
  177. "requireReturnDescription": false
  178. }],
  179. "valid-typeof": true,
  180. "variable-name": false,
  181. "whitespace": [
  182. true,
  183. "check-branch",
  184. "check-decl",
  185. "check-operator",
  186. "check-separator",
  187. "check-type"
  188. ]
  189. }
  190. }