tslint.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. 2
  27. ],
  28. "interface-name": [
  29. true,
  30. "always-prefix"
  31. ],
  32. "jsdoc-format": true,
  33. "label-position": 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-debugger": true,
  58. "no-default-export": false,
  59. "no-duplicate-variable": true,
  60. "no-empty": true,
  61. "no-eval": true,
  62. "no-inferrable-types": false,
  63. "no-internal-module": true,
  64. "no-invalid-this": [
  65. true,
  66. "check-function-in-method"
  67. ],
  68. "no-null-keyword": false,
  69. "no-reference": true,
  70. "no-require-imports": false,
  71. "no-shadowed-variable": false,
  72. "no-string-literal": false,
  73. "no-switch-case-fall-through": true,
  74. "no-trailing-whitespace": true,
  75. "no-unused-expression": true,
  76. "no-use-before-declare": false,
  77. "no-var-keyword": true,
  78. "no-var-requires": true,
  79. "object-literal-sort-keys": false,
  80. "one-line": [
  81. true,
  82. "check-open-brace",
  83. "check-catch",
  84. "check-else",
  85. "check-finally",
  86. "check-whitespace"
  87. ],
  88. "one-variable-per-declaration": [true,
  89. "ignore-for-loop"
  90. ],
  91. "quotemark": [
  92. true,
  93. "single",
  94. "avoid-escape"
  95. ],
  96. "radix": true,
  97. "semicolon": [true, "always"],
  98. "switch-default": true,
  99. "trailing-comma": [
  100. false,
  101. {
  102. "multiline": "never",
  103. "singleline": "never"
  104. }
  105. ],
  106. "triple-equals": [
  107. true,
  108. "allow-null-check",
  109. "allow-undefined-check"
  110. ],
  111. "typedef": [
  112. false
  113. ],
  114. "typedef-whitespace": [
  115. false,
  116. {
  117. "call-signature": "nospace",
  118. "index-signature": "nospace",
  119. "parameter": "nospace",
  120. "property-declaration": "nospace",
  121. "variable-declaration": "nospace"
  122. },
  123. {
  124. "call-signature": "space",
  125. "index-signature": "space",
  126. "parameter": "space",
  127. "property-declaration": "space",
  128. "variable-declaration": "space"
  129. }
  130. ],
  131. "use-isnan": true,
  132. "use-strict": [
  133. false
  134. ],
  135. "variable-name": [
  136. true,
  137. "check-format",
  138. "allow-leading-underscore",
  139. "ban-keywords"
  140. ],
  141. "whitespace": [
  142. true,
  143. "check-branch",
  144. "check-operator",
  145. "check-separator",
  146. "check-type"
  147. ]
  148. }
  149. }