tslint.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "rules": {
  3. "class-name": true,
  4. "comment-format": [true, "check-space"],
  5. "curly": true,
  6. "eofline": true,
  7. "forin": true,
  8. "no-duplicate-imports":true,
  9. "import-spacing":true,
  10. "indent": [true, "spaces"],
  11. "label-position": true,
  12. "label-undefined": true,
  13. "max-line-length": [true, 180],
  14. "member-access": true,
  15. "member-ordering": [true,
  16. "public-before-private",
  17. "static-before-instance",
  18. "variables-before-functions"
  19. ],
  20. "no-arg": true,
  21. "no-bitwise": true,
  22. "no-console": [true,
  23. "debug",
  24. "info",
  25. "time",
  26. "timeEnd",
  27. "trace"
  28. ],
  29. "no-construct": true,
  30. "no-debugger": true,
  31. "no-duplicate-key": true,
  32. "no-duplicate-variable": true,
  33. "no-empty": true,
  34. "no-eval": true,
  35. "no-inferrable-types": true,
  36. "no-shadowed-variable": true,
  37. "no-string-literal": false,
  38. "no-switch-case-fall-through": true,
  39. "no-trailing-whitespace": true,
  40. "no-unused-expression": true,
  41. "no-unused-variable": true,
  42. "no-unreachable": true,
  43. "no-use-before-declare": true,
  44. "no-var-keyword": true,
  45. "object-literal-sort-keys": true,
  46. "prefer-const": true,
  47. "one-line": [true,
  48. "check-open-brace",
  49. "check-catch",
  50. "check-else",
  51. "check-finally",
  52. "check-whitespace"
  53. ],
  54. "quotemark": [true, "single", "avoid-escape"],
  55. "radix": true,
  56. "semicolon": [true, "always"],
  57. "trailing-comma": [true, {
  58. "singleline": "never",
  59. "multiline": "always"
  60. }],
  61. "triple-equals": [true, "allow-null-check"],
  62. "typedef-whitespace": [true, {
  63. "call-signature": "nospace",
  64. "index-signature": "nospace",
  65. "parameter": "nospace",
  66. "property-declaration": "nospace",
  67. "variable-declaration": "nospace"
  68. }],
  69. "variable-name": false,
  70. "whitespace": [true,
  71. "check-branch",
  72. "check-decl",
  73. "check-operator",
  74. "check-separator",
  75. "check-type"
  76. ]
  77. }
  78. }