tslint.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "rules": {
  3. "no-string-throw": true,
  4. "no-unused-expression": true,
  5. "no-duplicate-variable": true,
  6. "no-unused-variable": true,
  7. "curly": true,
  8. "class-name": true,
  9. "semicolon": ["always"],
  10. "triple-equals": [true, "allow-null-check"],
  11. "comment-format": [false, "check-space"],
  12. "eofline": true,
  13. "forin": false,
  14. "indent": [true, "spaces", 2],
  15. "label-position": true,
  16. "max-line-length": [true, 140],
  17. "member-access": false,
  18. "no-arg": true,
  19. "no-bitwise": true,
  20. "no-console": [true,
  21. "debug",
  22. "info",
  23. "time",
  24. "timeEnd",
  25. "trace"
  26. ],
  27. "no-construct": true,
  28. "no-debugger": true,
  29. "no-duplicate-variable": true,
  30. "no-empty": false,
  31. "no-eval": true,
  32. "no-inferrable-types": true,
  33. "no-shadowed-variable": false,
  34. "no-string-literal": false,
  35. "no-switch-case-fall-through": false,
  36. "no-trailing-whitespace": true,
  37. "no-use-before-declare": true,
  38. "no-var-keyword": false,
  39. "object-literal-sort-keys": false,
  40. "one-line": [true,
  41. "check-open-brace",
  42. "check-catch",
  43. "check-else"
  44. ],
  45. "radix": false,
  46. "typedef-whitespace": [true, {
  47. "call-signature": "nospace",
  48. "index-signature": "nospace",
  49. "parameter": "nospace",
  50. "property-declaration": "nospace",
  51. "variable-declaration": "nospace"
  52. }],
  53. "variable-name": [true, "ban-keywords"],
  54. "whitespace": [true,
  55. "check-branch",
  56. "check-decl",
  57. "check-type",
  58. "check-preblock"
  59. ]
  60. }
  61. }