tslint.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "rules": {
  3. "align": [
  4. true,
  5. "parameters",
  6. "arguments",
  7. "statements"
  8. ],
  9. "ban": [
  10. true,
  11. [ "_", "forEach" ],
  12. [ "_", "each" ],
  13. [ "$", "each" ],
  14. [ "angular", "forEach" ]
  15. ],
  16. "class-name": true,
  17. "comment-format": [
  18. true,
  19. "check-space",
  20. "check-lowercase"
  21. ],
  22. "curly": true,
  23. "eofline": true,
  24. "forin": true,
  25. "indent": [
  26. true,
  27. "spaces"
  28. ],
  29. "interface-name": [
  30. true,
  31. "always-prefix"
  32. ],
  33. "jsdoc-format": true,
  34. "label-position": true,
  35. "label-undefined": true,
  36. "max-line-length": [
  37. true,
  38. 140
  39. ],
  40. "member-access": true,
  41. "member-ordering": [
  42. true,
  43. { "order": "fields-first" }
  44. ],
  45. "new-parens": true,
  46. "no-angle-bracket-type-assertion": false,
  47. "no-any": false,
  48. "no-arg": true,
  49. "no-bitwise": true,
  50. "no-conditional-assignment": true,
  51. "no-consecutive-blank-lines": false,
  52. "no-console": [
  53. true,
  54. "debug",
  55. "info",
  56. "time",
  57. "timeEnd",
  58. "trace"
  59. ],
  60. "no-construct": true,
  61. "no-constructor-vars": true,
  62. "no-debugger": true,
  63. "no-default-export": true,
  64. "no-duplicate-key": true,
  65. "no-duplicate-variable": true,
  66. "no-empty": false,
  67. "no-eval": false,
  68. "no-inferrable-types": false,
  69. "no-internal-module": true,
  70. "no-invalid-this": [
  71. true,
  72. "check-function-in-method"
  73. ],
  74. "no-null-keyword": false,
  75. "no-reference": true,
  76. "no-require-imports": true,
  77. "no-shadowed-variable": false,
  78. "no-string-literal": false,
  79. "no-switch-case-fall-through": true,
  80. "no-trailing-whitespace": false,
  81. "no-unreachable": true,
  82. "no-unused-expression": true,
  83. "no-unused-variable": true,
  84. "no-use-before-declare": true,
  85. "no-var-keyword": true,
  86. "no-var-requires": true,
  87. "object-literal-sort-keys": true,
  88. "one-line": [
  89. true,
  90. "check-open-brace",
  91. "check-catch",
  92. "check-else",
  93. "check-finally",
  94. "check-whitespace"
  95. ],
  96. "one-variable-per-declaration": false,
  97. "quotemark": false,
  98. "radix": true,
  99. "semicolon": [true, "always"],
  100. "switch-default": true,
  101. "trailing-comma": false,
  102. "triple-equals": [
  103. true,
  104. "allow-null-check",
  105. "allow-undefined-check"
  106. ],
  107. "typedef": [
  108. true,
  109. "call-signature",
  110. "parameter",
  111. "arrow-parameter",
  112. "property-declaration",
  113. "variable-declaration",
  114. "member-variable-declaration"
  115. ],
  116. "typedef-whitespace": [
  117. true,
  118. {
  119. "call-signature": "nospace",
  120. "index-signature": "nospace",
  121. "parameter": "nospace",
  122. "property-declaration": "nospace",
  123. "variable-declaration": "nospace"
  124. },
  125. {
  126. "call-signature": "space",
  127. "index-signature": "space",
  128. "parameter": "space",
  129. "property-declaration": "space",
  130. "variable-declaration": "space"
  131. }
  132. ],
  133. "use-isnan": true,
  134. "use-strict": [
  135. true,
  136. "check-module",
  137. "check-function"
  138. ],
  139. "variable-name": false,
  140. "whitespace": [
  141. true,
  142. "check-branch",
  143. "check-decl",
  144. "check-operator",
  145. "check-separator",
  146. "check-type"
  147. ]
  148. }
  149. }