tslint.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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-parens": false,
  15. "arrow-return-shorthand": true,
  16. "curly": true,
  17. "deprecation": {
  18. "severity": "warn"
  19. },
  20. "eofline": true,
  21. "import-blacklist": [
  22. true,
  23. "rxjs/Rx",
  24. "^.*/public-api$"
  25. ],
  26. "import-spacing": true,
  27. "indent": {
  28. "options": [
  29. "spaces"
  30. ]
  31. },
  32. "interface-name": false,
  33. "max-classes-per-file": false,
  34. "max-line-length": [
  35. true,
  36. 140
  37. ],
  38. "member-access": false,
  39. "member-ordering": [
  40. true,
  41. {
  42. "order": [
  43. "static-field",
  44. "instance-field",
  45. "static-method",
  46. "instance-method"
  47. ]
  48. }
  49. ],
  50. "no-consecutive-blank-lines": false,
  51. "no-console": [
  52. true,
  53. "debug",
  54. "info",
  55. "time",
  56. "timeEnd",
  57. "trace"
  58. ],
  59. "no-empty": false,
  60. "no-inferrable-types": [
  61. true,
  62. "ignore-params"
  63. ],
  64. "no-non-null-assertion": true,
  65. "no-redundant-jsdoc": true,
  66. "no-switch-case-fall-through": true,
  67. "no-var-requires": false,
  68. "object-literal-key-quotes": [
  69. true,
  70. "as-needed"
  71. ],
  72. "object-literal-sort-keys": false,
  73. "ordered-imports": false,
  74. "quotemark": [
  75. true,
  76. "single"
  77. ],
  78. "semicolon": {
  79. "options": [
  80. "always"
  81. ]
  82. },
  83. "space-before-function-paren": {
  84. "options": {
  85. "anonymous": "never",
  86. "asyncArrow": "always",
  87. "constructor": "never",
  88. "method": "never",
  89. "named": "never"
  90. }
  91. },
  92. "trailing-comma": false,
  93. "no-output-on-prefix": true,
  94. "typedef-whitespace": {
  95. "options": [
  96. {
  97. "call-signature": "nospace",
  98. "index-signature": "nospace",
  99. "parameter": "nospace",
  100. "property-declaration": "nospace",
  101. "variable-declaration": "nospace"
  102. },
  103. {
  104. "call-signature": "onespace",
  105. "index-signature": "onespace",
  106. "parameter": "onespace",
  107. "property-declaration": "onespace",
  108. "variable-declaration": "onespace"
  109. }
  110. ]
  111. },
  112. "use-input-property-decorator": true,
  113. "use-output-property-decorator": true,
  114. "use-host-property-decorator": true,
  115. "no-input-rename": true,
  116. "no-output-rename": true,
  117. "use-life-cycle-interface": true,
  118. "use-pipe-transform-interface": true,
  119. "component-class-suffix": true,
  120. "directive-class-suffix": true
  121. , "variable-name": {
  122. "options": [
  123. "ban-keywords",
  124. "check-format",
  125. "allow-pascal-case"
  126. ]
  127. },
  128. "whitespace": {
  129. "options": [
  130. "check-branch",
  131. "check-decl",
  132. "check-operator",
  133. "check-separator",
  134. "check-type",
  135. "check-typecast"
  136. ]
  137. }
  138. }
  139. }