tslint.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "rules": {
  3. "no-any": true,
  4. "no-internal-module": true,
  5. "no-namespace": true,
  6. "no-reference": true,
  7. "no-var-requires": true,
  8. "typedef": [true, "call-signature", "parameter", "property-declaration"],
  9. "typedef-whitespace": [
  10. true,
  11. {
  12. "call-signature": "nospace",
  13. "index-signature": "nospace",
  14. "parameter": "nospace",
  15. "property-declaration": "nospace",
  16. "variable-declaration": "nospace"
  17. },
  18. {
  19. "call-signature": "onespace",
  20. "index-signature": "onespace",
  21. "parameter": "onespace",
  22. "property-declaration": "onespace",
  23. "variable-declaration": "onespace"
  24. }
  25. ],
  26. "curly": true,
  27. "forin": true,
  28. "label-position": true,
  29. "no-arg": true,
  30. "no-bitwise": true,
  31. "no-conditional-assignment": true,
  32. // "no-console": [
  33. // true,
  34. // "log"
  35. // ],
  36. "no-construct": true,
  37. "no-debugger": true,
  38. "no-duplicate-variable": true,
  39. "no-empty": true,
  40. "no-eval": true,
  41. "no-invalid-this": true,
  42. // "no-null-keyword": true,
  43. "no-shadowed-variable": true,
  44. // "no-string-literal": true,
  45. "no-switch-case-fall-through": true,
  46. "no-unsafe-finally": true,
  47. "no-unused-expression": true,
  48. "no-var-keyword": true,
  49. "radix": true,
  50. "switch-default": true,
  51. "triple-equals": true,
  52. "use-isnan": true,
  53. "eofline": true,
  54. "indent": [true, "spaces"],
  55. "max-file-line-count": [true, 800],
  56. "max-line-length": [true, 160],
  57. "no-default-export": true,
  58. "no-mergeable-namespace": true,
  59. "no-require-imports": true,
  60. "align": [true, "statements"],
  61. //"arrow-parens": true,
  62. "class-name": true,
  63. "jsdoc-format": true,
  64. "new-parens": true,
  65. "no-angle-bracket-type-assertion": true,
  66. "no-consecutive-blank-lines": [true, 1],
  67. "no-parameter-properties": true,
  68. // "object-literal-key-quotes": [
  69. // true,
  70. // "as-needed"
  71. // ],
  72. "one-line": [
  73. true,
  74. "check-catch",
  75. "check-finally",
  76. "check-else",
  77. "check-open-brace",
  78. "check-whitespace"
  79. ],
  80. "one-variable-per-declaration": [true],
  81. "variable-name": [
  82. true,
  83. "ban-keywords",
  84. "check-format",
  85. "allow-leading-underscore"
  86. ]
  87. }
  88. }