tslint.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. "only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
  53. "prefer-const": true,
  54. "radix": true,
  55. "typedef-whitespace": [
  56. true,
  57. {
  58. "call-signature": "nospace",
  59. "index-signature": "nospace",
  60. "parameter": "nospace",
  61. "property-declaration": "nospace",
  62. "variable-declaration": "nospace"
  63. }
  64. ],
  65. "variable-name": [
  66. true,
  67. "check-format",
  68. "ban-keywords",
  69. "allow-leading-underscore",
  70. "allow-trailing-underscore",
  71. "allow-pascal-case"
  72. ],
  73. "use-isnan": true,
  74. "whitespace": [true, "check-branch", "check-decl", "check-type", "check-preblock"]
  75. }
  76. }