tslint.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {
  2. "rules": {
  3. "align": false,
  4. "ban": [
  5. true,
  6. {
  7. "name": ["*", "Promise", "otherwise"],
  8. "message": "Use .catch() instead"
  9. }
  10. ],
  11. "class-name": true,
  12. "comment-format": false,
  13. "curly": true,
  14. "eofline": true,
  15. "forin": false,
  16. "indent": [
  17. true,
  18. "spaces"
  19. ],
  20. "interface-name": false,
  21. "jsdoc-format": true,
  22. "label-position": true,
  23. "max-line-length": false,
  24. "member-access": false,
  25. "member-ordering": false,
  26. "no-any": false,
  27. "no-arg": true,
  28. "no-bitwise": false,
  29. "no-conditional-assignment": true,
  30. "no-console": false,
  31. "no-consecutive-blank-lines": false,
  32. "no-construct": true,
  33. "no-debugger": true,
  34. "no-default-export": false,
  35. "no-duplicate-variable": true,
  36. "no-empty": false,
  37. "no-eval": true,
  38. "no-inferrable-types": false,
  39. "no-internal-module": true,
  40. "no-require-imports": false,
  41. "no-shadowed-variable": false,
  42. "no-string-literal": false,
  43. "no-switch-case-fall-through": false,
  44. "no-trailing-whitespace": true,
  45. "no-unnecessary-class": false,
  46. "no-unused-expression": false,
  47. "no-use-before-declare": false,
  48. "no-var-keyword": true,
  49. "no-var-requires": false,
  50. "one-line": [
  51. true,
  52. "check-open-brace",
  53. "check-whitespace"
  54. ],
  55. "prefer-const": true,
  56. "quotemark": [
  57. true,
  58. "double",
  59. "avoid-escape"
  60. ],
  61. "radix": true,
  62. "semicolon": [
  63. true,
  64. "always"
  65. ],
  66. "space-before-function-paren": [
  67. true,
  68. {
  69. "anonymous": "never",
  70. "asyncArrow": "always",
  71. "constructor": "never",
  72. "method": "never",
  73. "named": "never"
  74. }
  75. ],
  76. "switch-default": false,
  77. "trailing-comma": [
  78. true,
  79. {
  80. "multiline": "never",
  81. "singleline": "never"
  82. }
  83. ],
  84. "triple-equals": [
  85. true,
  86. "allow-null-check"
  87. ],
  88. "typedef": false,
  89. "typedef-whitespace": [
  90. true,
  91. {
  92. "call-signature": "nospace",
  93. "index-signature": "nospace",
  94. "parameter": "nospace",
  95. "property-declaration": "nospace",
  96. "variable-declaration": "nospace"
  97. },
  98. {
  99. "call-signature": "onespace",
  100. "index-signature": "onespace",
  101. "parameter": "onespace",
  102. "property-declaration": "onespace",
  103. "variable-declaration": "onespace"
  104. }
  105. ],
  106. "variable-name": false,
  107. "whitespace": [
  108. true,
  109. "check-branch",
  110. "check-decl",
  111. "check-operator",
  112. "check-module",
  113. "check-separator",
  114. "check-type",
  115. "check-typecast",
  116. "check-preblock"
  117. ],
  118. "brace-style": [
  119. true,
  120. {
  121. "allowSingleLine": true
  122. }
  123. ],
  124. "no-unexisting-dojo-plugin-imports": [
  125. true,
  126. {
  127. "base": "../"
  128. }
  129. ],
  130. "no-checked-in-generated-files": true,
  131. "no-unexisting-amd-dependencies": [
  132. true,
  133. {
  134. "base": "../"
  135. }
  136. ],
  137. "imports-format": [
  138. true,
  139. {
  140. "base": "../"
  141. }
  142. ],
  143. "prefer-relative-imports": [
  144. true,
  145. {
  146. "base": "../"
  147. }
  148. ],
  149. "suspicious-read-only": true
  150. },
  151. "rulesDirectory": [
  152. "../tsrules"
  153. ]
  154. }