tslint.json 3.3 KB

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