tslint.json 2.7 KB

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