tslint.json 2.8 KB

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