tslint.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "rules": {
  3. "ban": false,
  4. "class-name": true,
  5. "comment-format": [true,
  6. "check-space"
  7. ],
  8. "curly": false,
  9. "eofline": false,
  10. "forin": true,
  11. "indent": [true, 2],
  12. "interface-name": true,
  13. "jsdoc-format": true,
  14. "label-position": true,
  15. "label-undefined": 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. "no-any": false,
  23. "no-arg": true,
  24. "no-bitwise": true,
  25. "no-console": [true,
  26. "debug",
  27. "info",
  28. "time",
  29. "timeEnd",
  30. "trace"
  31. ],
  32. "no-construct": true,
  33. "no-constructor-vars": true,
  34. "no-debugger": true,
  35. "no-duplicate-key": true,
  36. "no-duplicate-variable": true,
  37. "no-empty": true,
  38. "no-eval": true,
  39. "no-string-literal": true,
  40. "no-switch-case-fall-through": true,
  41. "no-trailing-comma": true,
  42. "no-trailing-whitespace": true,
  43. "no-unused-expression": true,
  44. "no-unused-variable": true,
  45. "no-unreachable": true,
  46. "no-use-before-declare": false,
  47. "no-var-requires": true,
  48. "one-line": [true,
  49. "check-catch",
  50. "check-whitespace"
  51. ],
  52. "quotemark": [true, "single"],
  53. "radix": true,
  54. "semicolon": true,
  55. "triple-equals": [true, "allow-null-check"],
  56. "typedef": [true,
  57. "member-variable-declaration",
  58. "property-declaration"
  59. ],
  60. "typedef-whitespace": [true, {
  61. "call-signature": "nospace",
  62. "index-signature": "nospace",
  63. "parameter": "nospace",
  64. "property-declaration": "nospace",
  65. "variable-declaration": "nospace"
  66. }],
  67. "use-strict": false,
  68. "variable-name": false,
  69. "whitespace": [true,
  70. "check-branch",
  71. "check-decl",
  72. "check-operator",
  73. "check-separator",
  74. "check-type"
  75. ]
  76. }
  77. }