tslint.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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-parameter-reassignment": false,
  86. "no-reference": true,
  87. "no-reference-import": true,
  88. "no-regex-spaces": true,
  89. "no-require-imports": false,
  90. "no-shadowed-variable": true,
  91. "no-string-literal": true,
  92. "no-string-throw": true,
  93. "no-submodule-imports": true,
  94. "no-switch-case-fall-through": false,
  95. "no-trailing-whitespace": false,
  96. "no-unnecessary-callback-wrapper": true,
  97. "no-unexpected-multiline": true,
  98. "no-unused-expression": true,
  99. "no-use-before-declare": true,
  100. "no-var-keyword": true,
  101. "no-var-requires": false,
  102. "object-curly-spacing": [true, "always"],
  103. "object-literal-sort-keys": false,
  104. "one-line": [
  105. true,
  106. "check-open-brace",
  107. "check-catch",
  108. "check-else",
  109. "check-finally",
  110. "check-whitespace"
  111. ],
  112. "one-variable-per-declaration": false,
  113. "only-arrow-functions": [true, "allow-declarations"],
  114. "prefer-const": true,
  115. "prefer-template": true,
  116. "quotemark": false,
  117. "radix": true,
  118. "semicolon": [true, "always"],
  119. "space-before-function-paren": true,
  120. "space-in-parens": [true, "never"],
  121. "switch-default": false,
  122. "ter-arrow-parens": true,
  123. "ter-func-call-spacing": [true, "never"],
  124. "ter-indent": [
  125. true,
  126. 4,
  127. {
  128. "ArrayExpression": 1,
  129. "CallExpression": { "arguments": "first" },
  130. "FunctionDeclaration": { "body": 1, "parameters": 1 },
  131. "FunctionExpression": { "body": 1, "parameters": 1 },
  132. "MemberExpression": 1,
  133. "ObjectExpression": 1,
  134. "outerIIFEBody": 1,
  135. "SwitchCase": 1,
  136. "VariableDeclarator": 1
  137. }
  138. ],
  139. "ter-no-irregular-whitespace": [true],
  140. "ter-no-sparse-arrays": [true],
  141. "trailing-comma": false,
  142. "triple-equals": [
  143. true,
  144. "allow-null-check",
  145. "allow-undefined-check"
  146. ],
  147. "typedef": [
  148. true,
  149. "call-signature",
  150. "parameter",
  151. "arrow-parameter",
  152. "property-declaration",
  153. "variable-declaration",
  154. "member-variable-declaration"
  155. ],
  156. "typedef-whitespace": [
  157. true,
  158. {
  159. "call-signature": "nospace",
  160. "index-signature": "nospace",
  161. "parameter": "nospace",
  162. "property-declaration": "nospace",
  163. "variable-declaration": "nospace"
  164. },
  165. {
  166. "call-signature": "space",
  167. "index-signature": "space",
  168. "parameter": "space",
  169. "property-declaration": "space",
  170. "variable-declaration": "space"
  171. }
  172. ],
  173. "typeof-compare": true,
  174. "unified-signatures": true,
  175. "use-isnan": true,
  176. "valid-jsdoc": [false, {
  177. "requireReturn": false,
  178. "requireParamDescription": false,
  179. "requireReturnDescription": false
  180. }],
  181. "valid-typeof": true,
  182. "variable-name": false,
  183. "whitespace": [
  184. true,
  185. "check-branch",
  186. "check-decl",
  187. "check-operator",
  188. "check-separator",
  189. "check-type",
  190. "check-type-operator",
  191. "check-rest-spread"
  192. ]
  193. }
  194. }