tslint.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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": false,
  37. "member-access": true,
  38. "member-ordering": [
  39. true,
  40. { "order": "fields-first" }
  41. ],
  42. "new-parens": true,
  43. "no-angle-bracket-type-assertion": false,
  44. "no-any": false,
  45. "no-arg": true,
  46. "no-bitwise": true,
  47. "no-conditional-assignment": true,
  48. "no-consecutive-blank-lines": false,
  49. "no-console": [
  50. true,
  51. "debug",
  52. "info",
  53. "time",
  54. "timeEnd",
  55. "trace"
  56. ],
  57. "no-construct": true,
  58. "no-constructor-vars": true,
  59. "no-debugger": true,
  60. "no-default-export": true,
  61. "no-duplicate-key": true,
  62. "no-duplicate-variable": true,
  63. "no-empty": false,
  64. "no-eval": false,
  65. "no-inferrable-types": false,
  66. "no-internal-module": true,
  67. "no-invalid-this": [
  68. true,
  69. "check-function-in-method"
  70. ],
  71. "no-null-keyword": false,
  72. "no-reference": true,
  73. "no-require-imports": true,
  74. "no-shadowed-variable": false,
  75. "no-string-literal": false,
  76. "no-switch-case-fall-through": true,
  77. "no-trailing-whitespace": false,
  78. "no-unreachable": true,
  79. "no-unused-expression": true,
  80. "no-unused-variable": true,
  81. "no-use-before-declare": true,
  82. "no-var-keyword": true,
  83. "no-var-requires": true,
  84. "object-literal-sort-keys": true,
  85. "one-line": [
  86. true,
  87. "check-open-brace",
  88. "check-catch",
  89. "check-else",
  90. "check-finally",
  91. "check-whitespace"
  92. ],
  93. "one-variable-per-declaration": false,
  94. "quotemark": false,
  95. "radix": true,
  96. "semicolon": [true, "always"],
  97. "switch-default": true,
  98. "trailing-comma": false,
  99. "triple-equals": [
  100. true,
  101. "allow-null-check",
  102. "allow-undefined-check"
  103. ],
  104. "typedef": [
  105. true,
  106. "call-signature",
  107. "parameter",
  108. "arrow-parameter",
  109. "property-declaration",
  110. "variable-declaration",
  111. "member-variable-declaration"
  112. ],
  113. "typedef-whitespace": [
  114. true,
  115. {
  116. "call-signature": "nospace",
  117. "index-signature": "nospace",
  118. "parameter": "nospace",
  119. "property-declaration": "nospace",
  120. "variable-declaration": "nospace"
  121. },
  122. {
  123. "call-signature": "space",
  124. "index-signature": "space",
  125. "parameter": "space",
  126. "property-declaration": "space",
  127. "variable-declaration": "space"
  128. }
  129. ],
  130. "use-isnan": true,
  131. "use-strict": [
  132. true,
  133. "check-module",
  134. "check-function"
  135. ],
  136. "variable-name": false,
  137. "whitespace": [
  138. true,
  139. "check-branch",
  140. "check-decl",
  141. "check-operator",
  142. "check-separator",
  143. "check-type"
  144. ]
  145. }
  146. }