tslint.json 3.2 KB

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