tslint.json 3.0 KB

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