tslint.json 2.7 KB

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