tslint.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "rulesDirectory": [
  3. "node_modules/codelyzer"
  4. ],
  5. "rules": {
  6. "arrow-return-shorthand": true,
  7. "callable-types": true,
  8. "class-name": true,
  9. "comment-format": [
  10. true,
  11. "check-space"
  12. ],
  13. "curly": true,
  14. "eofline": true,
  15. "forin": true,
  16. "import-blacklist": [
  17. true,
  18. "rxjs",
  19. "rxjs/Rx"
  20. ],
  21. "import-spacing": true,
  22. "indent": [
  23. true,
  24. "spaces"
  25. ],
  26. "interface-over-type-literal": true,
  27. "label-position": true,
  28. "max-line-length": [
  29. true,
  30. 140
  31. ],
  32. "member-access": false,
  33. "member-ordering": [
  34. true,
  35. {
  36. "order": [
  37. "static-field",
  38. "instance-field",
  39. "static-method",
  40. "instance-method"
  41. ]
  42. }
  43. ],
  44. "no-arg": true,
  45. "no-bitwise": true,
  46. "no-console": [
  47. true,
  48. "debug",
  49. "info",
  50. "time",
  51. "timeEnd",
  52. "trace"
  53. ],
  54. "no-construct": true,
  55. "no-debugger": true,
  56. "no-duplicate-super": true,
  57. "no-empty": false,
  58. "no-empty-interface": true,
  59. "no-eval": true,
  60. "no-inferrable-types": [
  61. true,
  62. "ignore-params"
  63. ],
  64. "no-misused-new": true,
  65. "no-non-null-assertion": true,
  66. "no-shadowed-variable": true,
  67. "no-string-literal": false,
  68. "no-string-throw": true,
  69. "no-switch-case-fall-through": true,
  70. "no-trailing-whitespace": true,
  71. "no-unnecessary-initializer": true,
  72. "no-unused-expression": true,
  73. "no-use-before-declare": true,
  74. "no-var-keyword": true,
  75. "object-literal-sort-keys": false,
  76. "one-line": [
  77. true,
  78. "check-open-brace",
  79. "check-catch",
  80. "check-else",
  81. "check-whitespace"
  82. ],
  83. "prefer-const": true,
  84. "quotemark": [
  85. true,
  86. "single"
  87. ],
  88. "radix": true,
  89. "semicolon": [
  90. true,
  91. "always"
  92. ],
  93. "triple-equals": [
  94. true,
  95. "allow-null-check"
  96. ],
  97. "typedef-whitespace": [
  98. true,
  99. {
  100. "call-signature": "nospace",
  101. "index-signature": "nospace",
  102. "parameter": "nospace",
  103. "property-declaration": "nospace",
  104. "variable-declaration": "nospace"
  105. }
  106. ],
  107. "typeof-compare": true,
  108. "unified-signatures": true,
  109. "variable-name": false,
  110. "whitespace": [
  111. true,
  112. "check-branch",
  113. "check-decl",
  114. "check-operator",
  115. "check-separator",
  116. "check-type"
  117. ],
  118. "directive-selector": [
  119. true,
  120. "attribute",
  121. "app",
  122. "camelCase"
  123. ],
  124. "component-selector": [
  125. true,
  126. "element",
  127. "app",
  128. "kebab-case"
  129. ],
  130. "use-input-property-decorator": true,
  131. "use-output-property-decorator": true,
  132. "use-host-property-decorator": true,
  133. "no-input-rename": true,
  134. "no-output-rename": true,
  135. "use-life-cycle-interface": true,
  136. "use-pipe-transform-interface": true,
  137. "component-class-suffix": true,
  138. "directive-class-suffix": true,
  139. "invoke-injectable": true
  140. }
  141. }