tslint.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "rules": {
  3. "array-type": [true, "array-simple"],
  4. "arrow-return-shorthand": true,
  5. "ban": [true,
  6. {"name": "Array", "message": "tsstyle#array-constructor"}
  7. ],
  8. "ban-types": [true,
  9. ["Object", "Use {} instead."],
  10. ["String", "Use 'string' instead."],
  11. ["Number", "Use 'number' instead."],
  12. ["Boolean", "Use 'boolean' instead."]
  13. ],
  14. "interface-name": [true, "never-prefix"],
  15. "no-string-throw": true,
  16. "no-unused-expression": true,
  17. "no-unused-variable": false,
  18. "no-use-before-declare": false,
  19. "no-duplicate-variable": true,
  20. "curly": true,
  21. "class-name": true,
  22. "semicolon": [true, "always", "ignore-bound-class-methods"],
  23. "triple-equals": [true, "allow-null-check"],
  24. "comment-format": [false, "check-space"],
  25. "eofline": true,
  26. "forin": false,
  27. "indent": [true, "spaces", 2],
  28. "jsdoc-format": true,
  29. "label-position": true,
  30. "max-line-length": [true, 150],
  31. "member-access": [true, "no-public"],
  32. "new-parens": true,
  33. "no-angle-bracket-type-assertion": true,
  34. "no-arg": true,
  35. "no-bitwise": false,
  36. "no-conditional-assignment": true,
  37. "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
  38. "no-construct": true,
  39. "no-debugger": true,
  40. "no-empty": false,
  41. "no-eval": true,
  42. "no-inferrable-types": true,
  43. "no-namespace": [true, "allow-declarations"],
  44. "no-reference": true,
  45. "no-shadowed-variable": false,
  46. "no-string-literal": false,
  47. "no-switch-case-fall-through": false,
  48. "no-trailing-whitespace": true,
  49. "no-var-keyword": true,
  50. "object-literal-sort-keys": false,
  51. "one-line": [true, "check-open-brace", "check-catch", "check-else"],
  52. "prefer-const": true,
  53. "radix": false,
  54. "typedef-whitespace": [
  55. true,
  56. {
  57. "call-signature": "nospace",
  58. "index-signature": "nospace",
  59. "parameter": "nospace",
  60. "property-declaration": "nospace",
  61. "variable-declaration": "nospace"
  62. }
  63. ],
  64. "variable-name": [
  65. true,
  66. "check-format",
  67. "ban-keywords",
  68. "allow-leading-underscore",
  69. "allow-trailing-underscore",
  70. "allow-pascal-case"
  71. ],
  72. "use-isnan": true,
  73. "whitespace": [true, "check-branch", "check-decl", "check-type", "check-preblock"]
  74. }
  75. }