tslint.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. "check-lowercase"
  20. ],
  21. "curly": true,
  22. "eofline": true,
  23. "forin": true,
  24. "indent": [
  25. true,
  26. "spaces"
  27. ],
  28. "interface-name": [
  29. true,
  30. "always-prefix"
  31. ],
  32. "jsdoc-format": true,
  33. "label-position": true,
  34. "max-line-length": false,
  35. "member-access": true,
  36. "member-ordering": [
  37. true,
  38. { "order": "fields-first" }
  39. ],
  40. "new-parens": false,
  41. "no-angle-bracket-type-assertion": false,
  42. "no-any": false,
  43. "no-arg": true,
  44. "no-bitwise": true,
  45. "no-conditional-assignment": true,
  46. "no-consecutive-blank-lines": true,
  47. "no-console": [
  48. true,
  49. "debug",
  50. "info",
  51. "time",
  52. "timeEnd",
  53. "trace"
  54. ],
  55. "no-construct": true,
  56. "no-debugger": true,
  57. "no-default-export": true,
  58. "no-duplicate-variable": true,
  59. "no-empty": false,
  60. "no-empty-interface": true,
  61. "no-eval": false,
  62. "no-inferrable-types": false,
  63. "no-internal-module": true,
  64. "no-invalid-this": true,
  65. "no-null-keyword": false,
  66. "no-parameter-properties": true,
  67. "no-reference": true,
  68. "no-require-imports": false,
  69. "no-shadowed-variable": false,
  70. "no-string-literal": true,
  71. "no-string-throw": true,
  72. "no-switch-case-fall-through": false,
  73. "no-trailing-whitespace": false,
  74. "no-unused-expression": true,
  75. "no-use-before-declare": true,
  76. "no-var-keyword": true,
  77. "no-var-requires": false,
  78. "object-literal-sort-keys": false,
  79. "one-line": [
  80. true,
  81. "check-open-brace",
  82. "check-catch",
  83. "check-else",
  84. "check-finally",
  85. "check-whitespace"
  86. ],
  87. "one-variable-per-declaration": false,
  88. "prefer-const": true,
  89. "quotemark": false,
  90. "radix": true,
  91. "semicolon": [true, "always"],
  92. "switch-default": false,
  93. "trailing-comma": false,
  94. "triple-equals": [
  95. true,
  96. "allow-null-check",
  97. "allow-undefined-check"
  98. ],
  99. "typedef": [
  100. true,
  101. "call-signature",
  102. "parameter",
  103. "arrow-parameter",
  104. "property-declaration",
  105. "variable-declaration",
  106. "member-variable-declaration"
  107. ],
  108. "typedef-whitespace": [
  109. true,
  110. {
  111. "call-signature": "nospace",
  112. "index-signature": "nospace",
  113. "parameter": "nospace",
  114. "property-declaration": "nospace",
  115. "variable-declaration": "nospace"
  116. },
  117. {
  118. "call-signature": "space",
  119. "index-signature": "space",
  120. "parameter": "space",
  121. "property-declaration": "space",
  122. "variable-declaration": "space"
  123. }
  124. ],
  125. "use-isnan": true,
  126. "variable-name": false,
  127. "whitespace": [
  128. true,
  129. "check-branch",
  130. "check-decl",
  131. "check-operator",
  132. "check-separator",
  133. "check-type"
  134. ]
  135. }
  136. }