Keine Beschreibung

tslint.json 3.9KB

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

Powered by TurnKey Linux.