tslint.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "extends": ["tslint:recommended", "tslint-config-prettier"],
  3. "rules": {
  4. "adjacent-overload-signatures": true,
  5. "align": [false, "statements"],
  6. "array-type": [true, "array"],
  7. "arrow-parens": false,
  8. "arrow-return-shorthand": [true],
  9. "callable-types": false,
  10. "class-name": true,
  11. "comment-format": [true, "check-space"],
  12. "curly": true,
  13. "cyclomatic-complexity": [true, 7],
  14. "deprecation": {
  15. "severity": "warning"
  16. },
  17. "eofline": true,
  18. "forin": true,
  19. "indent": [true, "spaces", 4],
  20. "import-spacing": true,
  21. "interface-name": [true, "never-prefix"],
  22. "jsdoc-format": true,
  23. "label-position": true,
  24. "max-classes-per-file": false,
  25. "max-line-length": [false],
  26. "member-access": true,
  27. "member-ordering": [
  28. true,
  29. {
  30. "order": ["static-field", "static-method", "instance-field", "constructor", "instance-method"]
  31. }
  32. ],
  33. "new-parens": true,
  34. "no-angle-bracket-type-assertion": true,
  35. "no-any": false,
  36. "no-arg": true,
  37. "no-bitwise": true,
  38. "no-conditional-assignment": true,
  39. "no-consecutive-blank-lines": [true, 1],
  40. "no-console": [true, "log"],
  41. "no-construct": true,
  42. "no-debugger": true,
  43. "no-duplicate-imports": true,
  44. "no-duplicate-super": true,
  45. "no-duplicate-switch-case": true,
  46. "no-empty": true,
  47. "no-eval": true,
  48. "no-implicit-dependencies": false,
  49. "no-inferrable-types": [true],
  50. "no-internal-module": true,
  51. "no-misused-new": true,
  52. "no-object-literal-type-assertion": true,
  53. "no-parameter-properties": true,
  54. "no-parameter-reassignment": true,
  55. "no-reference": true,
  56. "no-reference-import": true,
  57. "no-require-imports": false,
  58. "no-return-await": true,
  59. "no-shadowed-variable": false,
  60. "no-string-throw": true,
  61. "no-switch-case-fall-through": false,
  62. "no-submodule-imports": [true, "text-mask-addons"],
  63. "no-trailing-whitespace": [true, "ignore-comments", "ignore-jsdoc", "ignore-template-strings"],
  64. "no-unnecessary-class": true,
  65. "no-unnecessary-type-assertion": true,
  66. "no-unused-expression": true,
  67. "no-var-keyword": true,
  68. "no-var-requires": true,
  69. "number-literal-format": true,
  70. "object-literal-key-quotes": [true, "as-needed"],
  71. "object-literal-shorthand": true,
  72. "one-line": [true, "check-catch", "check-else", "check-finally", "check-open-brace", "check-whitespace"],
  73. "object-literal-sort-keys": [false],
  74. "one-variable-per-declaration": [true, "ignore-for-loop"],
  75. "ordered-imports": [
  76. true,
  77. {
  78. "import-sources-order": "case-insensitive",
  79. "named-imports-order": "any"
  80. }
  81. ],
  82. "prefer-const": true,
  83. "prefer-for-of": true,
  84. "prefer-method-signature": true,
  85. "prefer-template": [true, "allow-single-concat"],
  86. "quotemark": [true, "double", "jsx-double", "avoid-escape"],
  87. "radix": true,
  88. "space-before-function-paren": [
  89. true,
  90. {
  91. "anonymous": "never",
  92. "named": "never",
  93. "asyncArrow": "always",
  94. "method": "never",
  95. "constructor": "never"
  96. }
  97. ],
  98. "trailing-comma": [
  99. true,
  100. {
  101. "multiline": "never",
  102. "singleline": "never"
  103. }
  104. ],
  105. "triple-equals": [true],
  106. "typedef": [true, "call-signature", "property-declaration"],
  107. "typedef-whitespace": [
  108. true,
  109. {
  110. "call-signature": "nospace",
  111. "index-signature": "nospace",
  112. "parameter": "nospace",
  113. "property-declaration": "nospace",
  114. "variable-declaration": "nospace"
  115. },
  116. {
  117. "call-signature": "onespace",
  118. "index-signature": "onespace",
  119. "parameter": "onespace",
  120. "property-declaration": "onespace",
  121. "variable-declaration": "onespace"
  122. }
  123. ],
  124. "unified-signatures": true,
  125. "use-isnan": true,
  126. "variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
  127. "whitespace": [
  128. true,
  129. "check-branch",
  130. "check-decl",
  131. "check-operator",
  132. "check-module",
  133. "check-separator",
  134. "check-rest-spread",
  135. "check-type",
  136. "check-typecast",
  137. "check-type-operator",
  138. "check-preblock"
  139. ]
  140. }
  141. }