sample.tslint.json 2.8 KB

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