tslint.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "rules": {
  3. "ban": false,
  4. "class-name": true,
  5. "comment-format": [true,
  6. "check-space",
  7. "check-lowercase"
  8. ],
  9. "curly": false,
  10. "eofline": true,
  11. "forin": true,
  12. "indent": [true, 2],
  13. "interface-name": true,
  14. "jsdoc-format": true,
  15. "label-position": true,
  16. "label-undefined": true,
  17. "max-line-length": [true, 140],
  18. "member-ordering": [true,
  19. "public-before-private",
  20. "static-before-instance",
  21. "variables-before-functions"
  22. ],
  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-constructor-vars": true,
  35. "no-debugger": true,
  36. "no-duplicate-key": true,
  37. "no-duplicate-variable": true,
  38. "no-empty": true,
  39. "no-eval": true,
  40. "no-string-literal": true,
  41. "no-switch-case-fall-through": true,
  42. "no-trailing-comma": true,
  43. "no-trailing-whitespace": true,
  44. "no-unused-expression": true,
  45. "no-unused-variable": true,
  46. "no-unreachable": true,
  47. "no-use-before-declare": true,
  48. "no-var-requires": true,
  49. "one-line": [true,
  50. "check-catch",
  51. "check-else",
  52. "check-open-brace",
  53. "check-whitespace"
  54. ],
  55. "quotemark": [true, "single"],
  56. "radix": true,
  57. "semicolon": true,
  58. "triple-equals": [true, "allow-null-check"],
  59. "typedef": [true,
  60. "call-signature",
  61. "member-variable-declaration",
  62. "parameter",
  63. "property-declaration",
  64. "variable-declaration"
  65. ],
  66. "typedef-whitespace": [true, {
  67. "call-signature": "nospace",
  68. "index-signature": "nospace",
  69. "parameter": "nospace",
  70. "property-declaration": "nospace",
  71. "variable-declaration": "nospace"
  72. }],
  73. "use-strict": [true,
  74. "check-module",
  75. "check-function"
  76. ],
  77. "variable-name": false,
  78. "whitespace": [true,
  79. "check-branch",
  80. "check-decl",
  81. "check-operator",
  82. "check-separator",
  83. "check-type"
  84. ]
  85. }
  86. }