tslint.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. {
  2. "extends": "tslint:recommended",
  3. "rules": {
  4. "array-type": [true, "array-simple"],
  5. "arrow-parens": false,
  6. "arrow-return-shorthand": true,
  7. "deprecation": {
  8. "severity": "warning"
  9. },
  10. "component-class-suffix": true,
  11. "contextual-lifecycle": true,
  12. "curly": true,
  13. "directive-class-suffix": true,
  14. "directive-selector": [
  15. true,
  16. "attribute",
  17. "evt",
  18. "camelCase"
  19. ],
  20. "component-selector": [
  21. true,
  22. "element",
  23. "evt",
  24. "kebab-case"
  25. ],
  26. "import-blacklist": [
  27. true,
  28. "rxjs/Rx"
  29. ],
  30. "interface-name": false,
  31. "max-classes-per-file": false,
  32. "max-line-length": [
  33. true,
  34. 140
  35. ],
  36. "member-access": false,
  37. "member-ordering": [
  38. true,
  39. {
  40. "order": [
  41. "static-field",
  42. "instance-field",
  43. "static-method",
  44. "instance-method"
  45. ]
  46. }
  47. ],
  48. "no-conditional-assignment": true,
  49. "no-eval": true,
  50. "no-invalid-template-strings": true,
  51. "no-null-keyword": true,
  52. "no-shadowed-variable": true,
  53. "no-unsafe-finally": true,
  54. "no-unused-expression": true,
  55. "no-var-keyword": true,
  56. "no-consecutive-blank-lines": true,
  57. "no-console": [
  58. true,
  59. "debug",
  60. "info",
  61. "time",
  62. "timeEnd",
  63. "trace"
  64. ],
  65. "no-any": true,
  66. "no-for-in-array": true,
  67. "no-empty": true,
  68. "no-empty-interface": true,
  69. "no-inferrable-types": [
  70. true,
  71. "ignore-params"
  72. ],
  73. "no-non-null-assertion": true,
  74. "no-redundant-jsdoc": true,
  75. "no-switch-case-fall-through": true,
  76. "no-var-requires": false,
  77. "object-literal-key-quotes": [
  78. true,
  79. "as-needed"
  80. ],
  81. "object-literal-sort-keys": false,
  82. "ordered-imports": true,
  83. "indent": [true, "spaces", 4],
  84. "quotemark": [
  85. true,
  86. "single",
  87. "avoid-escape",
  88. "avoid-template"
  89. ],
  90. "eofline": true,
  91. "import-spacing": true,
  92. "align": [true, "parameters", "statements", "arguments", "members", "elements"],
  93. "trailing-comma": [true, {"multiline": "always", "singleline": "never"}],
  94. "no-conflicting-lifecycle": true,
  95. "no-trailing-whitespace": true,
  96. "no-host-metadata-property": true,
  97. "no-input-rename": true,
  98. "no-inputs-metadata-property": true,
  99. "no-output-native": true,
  100. "no-output-on-prefix": true,
  101. "no-output-rename": true,
  102. "no-outputs-metadata-property": true,
  103. "prefer-const": true,
  104. "use-isnan": true,
  105. "template-banana-in-box": true,
  106. "template-no-negated-async": true,
  107. "use-lifecycle-interface": true,
  108. "triple-equals": true,
  109. "no-duplicate-switch-case": true,
  110. "file-name-casing": [true, "kebab-case"],
  111. "interface-over-type-literal": true,
  112. "no-boolean-literal-compare": true,
  113. "space-before-function-paren": [true, "never"],
  114. "unnecessary-else": true,
  115. "typedef-whitespace": {
  116. "options": [
  117. {
  118. "call-signature": "nospace",
  119. "index-signature": "nospace",
  120. "parameter": "nospace",
  121. "property-declaration": "nospace",
  122. "variable-declaration": "nospace"
  123. },
  124. {
  125. "call-signature": "onespace",
  126. "index-signature": "onespace",
  127. "parameter": "onespace",
  128. "property-declaration": "onespace",
  129. "variable-declaration": "onespace"
  130. }
  131. ]
  132. },
  133. "newline-before-return": true,
  134. "no-irregular-whitespace": true,
  135. "semicolon": [true, "always"],
  136. "use-pipe-transform-interface": true,
  137. "variable-name": {
  138. "options": [
  139. "ban-keywords",
  140. "check-format",
  141. "allow-pascal-case"
  142. ]
  143. },
  144. "whitespace": {
  145. "options": [
  146. "check-branch",
  147. "check-decl",
  148. "check-operator",
  149. "check-separator",
  150. "check-type",
  151. "check-typecast"
  152. ]
  153. }
  154. },
  155. "rulesDirectory": [
  156. "codelyzer"
  157. ]
  158. }