tslint.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "extends": "tslint:latest",
  3. "rules": {
  4. "ban": false,
  5. "class-name": true,
  6. "comment-format": [true,
  7. "check-space"
  8. ],
  9. "curly": false,
  10. "eofline": false,
  11. "forin": true,
  12. "indent": [true, 2],
  13. "interface-name": true,
  14. "jsdoc-format": true,
  15. "label-position": true,
  16. "max-line-length": [true, 140],
  17. "member-ordering": [true,
  18. "public-before-private",
  19. "static-before-instance",
  20. "variables-before-functions"
  21. ],
  22. "array-type": [true, "array"],
  23. "no-any": false,
  24. "no-arg": true,
  25. "no-bitwise": true,
  26. "no-console": [true,
  27. "debug",
  28. "info",
  29. "time",
  30. "timeEnd",
  31. "trace"
  32. ],
  33. "no-construct": true,
  34. "no-debugger": true,
  35. "no-duplicate-variable": true,
  36. "no-empty": true,
  37. "no-eval": true,
  38. "no-string-literal": true,
  39. "no-switch-case-fall-through": true,
  40. "no-trailing-whitespace": true,
  41. "no-unused-expression": true,
  42. "no-use-before-declare": false,
  43. "no-var-requires": true,
  44. "one-line": [true,
  45. "check-catch",
  46. "check-whitespace"
  47. ],
  48. "quotemark": [true, "single"],
  49. "radix": true,
  50. "semicolon": true,
  51. "triple-equals": [true, "allow-null-check"],
  52. "typedef": [true,
  53. "member-variable-declaration",
  54. "property-declaration"
  55. ],
  56. "typedef-whitespace": [true, {
  57. "call-signature": "nospace",
  58. "index-signature": "nospace",
  59. "parameter": "nospace",
  60. "property-declaration": "nospace",
  61. "variable-declaration": "nospace"
  62. }],
  63. "variable-name": false,
  64. "whitespace": [true,
  65. "check-branch",
  66. "check-decl",
  67. "check-operator",
  68. "check-separator",
  69. "check-type"
  70. ]
  71. }
  72. }