tslint.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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-console": [true, "debug", "info", "time", "timeEnd", "trace"],
  37. "no-construct": true,
  38. "no-debugger": true,
  39. "no-empty": false,
  40. "no-eval": true,
  41. "no-inferrable-types": true,
  42. "no-namespace": [true, "allow-declarations"],
  43. "no-reference": true,
  44. "no-shadowed-variable": false,
  45. "no-string-literal": false,
  46. "no-switch-case-fall-through": false,
  47. "no-trailing-whitespace": true,
  48. "no-var-keyword": true,
  49. "object-literal-sort-keys": false,
  50. "one-line": [true, "check-open-brace", "check-catch", "check-else"],
  51. "prefer-const": true,
  52. "radix": false,
  53. "typedef-whitespace": [
  54. true,
  55. {
  56. "call-signature": "nospace",
  57. "index-signature": "nospace",
  58. "parameter": "nospace",
  59. "property-declaration": "nospace",
  60. "variable-declaration": "nospace"
  61. }
  62. ],
  63. "variable-name": [
  64. true,
  65. "check-format",
  66. "ban-keywords",
  67. "allow-leading-underscore",
  68. "allow-trailing-underscore",
  69. "allow-pascal-case"
  70. ],
  71. "use-isnan": true,
  72. "whitespace": [true, "check-branch", "check-decl", "check-type", "check-preblock"]
  73. }
  74. }