a small private-blog service

tslint.json 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "rulesDirectory": [
  3. "node_modules/codelyzer"
  4. ],
  5. "extends": [
  6. "tslint-config-prettier"
  7. ],
  8. "rules": {
  9. "class-name": true,
  10. "comment-format": [
  11. true,
  12. "check-space"
  13. ],
  14. "curly": true,
  15. "eofline": true,
  16. "forin": true,
  17. "indent": [
  18. true,
  19. "spaces"
  20. ],
  21. "label-position": true,
  22. "max-line-length": [
  23. true,
  24. 180
  25. ],
  26. "member-access": false,
  27. "member-ordering": [
  28. true,
  29. "static-before-instance",
  30. "variables-before-functions"
  31. ],
  32. "no-arg": true,
  33. "no-bitwise": true,
  34. "no-console": [
  35. true,
  36. "debug",
  37. "info",
  38. "time",
  39. "timeEnd",
  40. "trace"
  41. ],
  42. "no-construct": true,
  43. "no-debugger": true,
  44. "no-duplicate-variable": true,
  45. "no-empty": false,
  46. "no-eval": true,
  47. "no-inferrable-types": [true],
  48. "no-shadowed-variable": true,
  49. "no-string-literal": false,
  50. "no-switch-case-fall-through": true,
  51. "no-trailing-whitespace": true,
  52. "no-unused-expression": true,
  53. "no-var-keyword": true,
  54. "object-literal-sort-keys": false,
  55. "one-line": [
  56. true,
  57. "check-open-brace",
  58. "check-catch",
  59. "check-else",
  60. "check-whitespace"
  61. ],
  62. "quotemark": [
  63. true,
  64. "single",
  65. "avoid-escape"
  66. ],
  67. "radix": true,
  68. "semicolon": [
  69. true,
  70. "always",
  71. "ignore-bound-class-methods"
  72. ],
  73. "triple-equals": [
  74. true,
  75. "allow-null-check"
  76. ],
  77. "typedef-whitespace": [
  78. true,
  79. {
  80. "call-signature": "nospace",
  81. "index-signature": "nospace",
  82. "parameter": "nospace",
  83. "property-declaration": "nospace",
  84. "variable-declaration": "nospace"
  85. }
  86. ],
  87. "variable-name": false,
  88. "whitespace": [
  89. true,
  90. "check-branch",
  91. "check-decl",
  92. "check-operator",
  93. "check-separator",
  94. "check-type"
  95. ],
  96. "prefer-const": true,
  97. "arrow-parens": [true, "ban-single-arg-parens"],
  98. "arrow-return-shorthand": [true],
  99. "import-spacing": true,
  100. "no-consecutive-blank-lines": [true],
  101. "object-literal-shorthand": true,
  102. "space-before-function-paren": [true, {
  103. "asyncArrow": "always",
  104. "anonymous": "never",
  105. "constructor": "never",
  106. "method": "never",
  107. "named": "never"
  108. }],
  109. "directive-selector": [true, "attribute", "jhi", "camelCase"],
  110. "component-selector": [true, "element", "jhi", "kebab-case"],
  111. "use-input-property-decorator": true,
  112. "use-output-property-decorator": true,
  113. "use-host-property-decorator": true,
  114. "no-input-rename": true,
  115. "no-output-rename": true,
  116. "use-life-cycle-interface": true,
  117. "use-pipe-transform-interface": false,
  118. "component-class-suffix": true,
  119. "directive-class-suffix": true
  120. }
  121. }