tslint.json 5.2 KB

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