tslint.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. "import-spacing": true,
  33. "jsdoc-format": true,
  34. "label-position": true,
  35. "max-line-length": false,
  36. "member-access": true,
  37. "member-ordering": [
  38. true,
  39. { "order": "fields-first" }
  40. ],
  41. "new-parens": false,
  42. "no-angle-bracket-type-assertion": false,
  43. "no-any": false,
  44. "no-arg": true,
  45. "no-bitwise": true,
  46. "no-conditional-assignment": true,
  47. "no-consecutive-blank-lines": true,
  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": true,
  59. "no-duplicate-variable": true,
  60. "no-empty": false,
  61. "no-empty-interface": true,
  62. "no-eval": false,
  63. "no-inferrable-types": false,
  64. "no-internal-module": true,
  65. "no-invalid-this": true,
  66. "no-null-keyword": false,
  67. "no-parameter-properties": true,
  68. "no-reference": true,
  69. "no-require-imports": false,
  70. "no-shadowed-variable": true,
  71. "no-string-literal": true,
  72. "no-string-throw": true,
  73. "no-switch-case-fall-through": false,
  74. "no-trailing-whitespace": false,
  75. "no-unused-expression": true,
  76. "no-use-before-declare": true,
  77. "no-var-keyword": true,
  78. "no-var-requires": false,
  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": false,
  89. "prefer-const": true,
  90. "quotemark": false,
  91. "radix": true,
  92. "semicolon": [true, "always"],
  93. "space-before-function-paren": true,
  94. "switch-default": false,
  95. "trailing-comma": false,
  96. "triple-equals": [
  97. true,
  98. "allow-null-check",
  99. "allow-undefined-check"
  100. ],
  101. "typedef": [
  102. true,
  103. "call-signature",
  104. "parameter",
  105. "arrow-parameter",
  106. "property-declaration",
  107. "variable-declaration",
  108. "member-variable-declaration"
  109. ],
  110. "typedef-whitespace": [
  111. true,
  112. {
  113. "call-signature": "nospace",
  114. "index-signature": "nospace",
  115. "parameter": "nospace",
  116. "property-declaration": "nospace",
  117. "variable-declaration": "nospace"
  118. },
  119. {
  120. "call-signature": "space",
  121. "index-signature": "space",
  122. "parameter": "space",
  123. "property-declaration": "space",
  124. "variable-declaration": "space"
  125. }
  126. ],
  127. "typeof-compare": true,
  128. "unified-signatures": true,
  129. "use-isnan": true,
  130. "variable-name": false,
  131. "whitespace": [
  132. true,
  133. "check-branch",
  134. "check-decl",
  135. "check-operator",
  136. "check-separator",
  137. "check-type"
  138. ]
  139. }
  140. }