tslint.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. ],
  20. "import-spacing": true,
  21. "indent": [
  22. true,
  23. "spaces"
  24. ],
  25. "interface-over-type-literal": true,
  26. "label-position": true,
  27. "max-line-length": [
  28. true,
  29. 140
  30. ],
  31. "member-access": false,
  32. "member-ordering": [
  33. true,
  34. "static-before-instance",
  35. "variables-before-functions"
  36. ],
  37. "no-arg": true,
  38. "no-bitwise": true,
  39. "no-console": [
  40. true,
  41. "debug",
  42. "info",
  43. "time",
  44. "timeEnd",
  45. "trace"
  46. ],
  47. "no-construct": true,
  48. "no-debugger": true,
  49. "no-duplicate-super": true,
  50. "no-empty": false,
  51. "no-empty-interface": true,
  52. "no-eval": true,
  53. "no-inferrable-types": [
  54. true,
  55. "ignore-params"
  56. ],
  57. "no-misused-new": true,
  58. "no-non-null-assertion": true,
  59. "no-shadowed-variable": true,
  60. "no-string-literal": false,
  61. "no-string-throw": true,
  62. "no-switch-case-fall-through": true,
  63. "no-trailing-whitespace": true,
  64. "no-unnecessary-initializer": true,
  65. "no-unused-expression": true,
  66. "no-use-before-declare": true,
  67. "no-var-keyword": true,
  68. "object-literal-sort-keys": false,
  69. "one-line": [
  70. true,
  71. "check-open-brace",
  72. "check-catch",
  73. "check-else",
  74. "check-whitespace"
  75. ],
  76. "prefer-const": true,
  77. "quotemark": [
  78. true,
  79. "single"
  80. ],
  81. "radix": true,
  82. "semicolon": [
  83. "always"
  84. ],
  85. "triple-equals": [
  86. true,
  87. "allow-null-check"
  88. ],
  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. "typeof-compare": true,
  100. "unified-signatures": true,
  101. "variable-name": false,
  102. "whitespace": [
  103. true,
  104. "check-branch",
  105. "check-decl",
  106. "check-operator",
  107. "check-separator",
  108. "check-type"
  109. ],
  110. "directive-selector": [
  111. true,
  112. "attribute",
  113. "app",
  114. "camelCase"
  115. ],
  116. "component-selector": [
  117. true,
  118. "element",
  119. "app",
  120. "kebab-case"
  121. ],
  122. "use-input-property-decorator": true,
  123. "use-output-property-decorator": true,
  124. "use-host-property-decorator": true,
  125. "no-input-rename": true,
  126. "no-output-rename": true,
  127. "use-life-cycle-interface": true,
  128. "use-pipe-transform-interface": true,
  129. "component-class-suffix": true,
  130. "directive-class-suffix": true,
  131. "no-access-missing-member": true,
  132. "templates-use-public": true,
  133. "invoke-injectable": true
  134. }
  135. }