tslint.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "rules": {
  3. "array-type": [
  4. true,
  5. "array"
  6. ],
  7. "arrow-parens": false,
  8. "no-var-keyword": true,
  9. "no-construct": true,
  10. "ordered-imports": [false],
  11. "trailing-comma": [false],
  12. "class-name": false,
  13. "comment-format": [
  14. true,
  15. "check-space"
  16. ],
  17. "indent": [
  18. true,
  19. "spaces"
  20. ],
  21. "ban-types": [
  22. true,
  23. ["String", "Use primitive 'string' instead."],
  24. ["Boolean", "Use primitive 'boolean' instead."],
  25. ["Number", "Use primitive 'number' instead."]
  26. ],
  27. "no-eval": true,
  28. "no-internal-module": true,
  29. "no-trailing-whitespace": true,
  30. "no-unsafe-finally": true,
  31. "one-line": [
  32. true,
  33. "check-open-brace",
  34. "check-whitespace"
  35. ],
  36. "quotemark": [
  37. true,
  38. "single"
  39. ],
  40. "semicolon": [ false ],
  41. "triple-equals": [
  42. true,
  43. "allow-null-check"
  44. ],
  45. "typedef-whitespace": [
  46. true,
  47. {
  48. "call-signature": "nospace",
  49. "index-signature": "nospace",
  50. "parameter": "nospace",
  51. "property-declaration": "nospace",
  52. "variable-declaration": "nospace"
  53. }
  54. ],
  55. "variable-name": [
  56. true,
  57. "ban-keywords"
  58. ],
  59. "whitespace": [
  60. true,
  61. "check-branch",
  62. "check-decl",
  63. "check-separator",
  64. "check-type"
  65. ]
  66. },
  67. "jsRules": {
  68. "triple-equals": [
  69. true,
  70. "allow-null-check"
  71. ]
  72. },
  73. "defaultSeverity": "warning"
  74. }