tslint.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "extends": [
  3. "tslint-config-prettier"
  4. ],
  5. "rulesDirectory": [
  6. "node_modules/codelyzer",
  7. "node_modules/ng-alain-codelyzer"
  8. ],
  9. "rules": {
  10. "arrow-return-shorthand": true,
  11. "callable-types": true,
  12. "class-name": true,
  13. "comment-format": [
  14. false,
  15. "check-space"
  16. ],
  17. "curly": false,
  18. "forin": false,
  19. "import-blacklist": [true, "rxjs/Rx"],
  20. "interface-over-type-literal": true,
  21. "label-position": true,
  22. "max-line-length": [
  23. false,
  24. 140
  25. ],
  26. "member-access": false,
  27. "member-ordering": [
  28. false,
  29. {
  30. "order": [
  31. "static-field",
  32. "instance-field",
  33. "static-method",
  34. "instance-method"
  35. ]
  36. }
  37. ],
  38. "no-arg": true,
  39. "no-bitwise": false,
  40. "no-console": [
  41. true,
  42. "debug",
  43. "info",
  44. "time",
  45. "timeEnd",
  46. "trace"
  47. ],
  48. "no-construct": true,
  49. "no-debugger": true,
  50. "no-duplicate-super": true,
  51. "no-empty": false,
  52. "no-empty-interface": true,
  53. "no-eval": true,
  54. "no-inferrable-types": [
  55. true,
  56. "ignore-params"
  57. ],
  58. "no-misused-new": true,
  59. "no-non-null-assertion": false,
  60. "no-shadowed-variable": true,
  61. "no-string-literal": false,
  62. "no-string-throw": true,
  63. "no-switch-case-fall-through": true,
  64. "no-trailing-whitespace": false,
  65. "no-unnecessary-initializer": true,
  66. "no-unused-expression": true,
  67. "no-use-before-declare": true,
  68. "no-var-keyword": true,
  69. "object-literal-sort-keys": false,
  70. "prefer-const": false,
  71. "radix": true,
  72. "triple-equals": [
  73. true,
  74. "allow-null-check"
  75. ],
  76. "typeof-compare": true,
  77. "unified-signatures": true,
  78. "variable-name": false,
  79. "directive-selector": [
  80. true,
  81. "attribute",
  82. ["app", "passport", "exception", "layout", "header"],
  83. "camelCase"
  84. ],
  85. "component-selector": [
  86. true,
  87. "element",
  88. ["app", "passport", "exception", "layout", "header"],
  89. "kebab-case"
  90. ],
  91. "use-input-property-decorator": true,
  92. "use-output-property-decorator": true,
  93. "use-host-property-decorator": false,
  94. "no-input-rename": false,
  95. "no-output-rename": false,
  96. "use-life-cycle-interface": true,
  97. "use-pipe-transform-interface": true,
  98. "component-class-suffix": true,
  99. "directive-class-suffix": true,
  100. "no-access-missing-member": true,
  101. "templates-use-public": true,
  102. "invoke-injectable": true,
  103. "use-path-mapping": [true, ["@core/*", "@shared/*"]]
  104. }
  105. }