tslint.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "linterOptions": {
  3. "exclude": [
  4. "**/*.d.ts",
  5. "**/fonts/tex/*.ts"
  6. ]
  7. },
  8. "rulesDirectory": [
  9. "node_modules/tslint-jsdoc-rules/lib"
  10. ],
  11. "rules": {
  12. "class-name": true,
  13. "comment-format": [
  14. true,
  15. "check-space"
  16. // "check-uppercase"
  17. ],
  18. "curly": [
  19. true,
  20. "ignore-same-line"
  21. ],
  22. "eofline": true,
  23. "indent": [
  24. true,
  25. "spaces"
  26. ],
  27. "jsdoc-format": true,
  28. "jsdoc-require": [
  29. true,
  30. "no-private-properties"
  31. ],
  32. "linebreak-style": true,
  33. "max-line-length": [
  34. true,
  35. 140
  36. ],
  37. "member-access": true,
  38. "member-ordering": [
  39. true,
  40. {"order": [
  41. "static-field",
  42. "instance-field",
  43. "static-method",
  44. "instance-method"
  45. ]}
  46. ],
  47. "no-duplicate-variable": true,
  48. "no-eval": true,
  49. "no-internal-module": true,
  50. "no-trailing-whitespace": true,
  51. "no-var-keyword": true,
  52. "one-line": [
  53. true,
  54. "check-open-brace",
  55. "check-whitespace"
  56. ],
  57. "quotemark": [
  58. true,
  59. "single"
  60. ],
  61. "semicolon": true,
  62. "triple-equals": [
  63. true,
  64. "allow-null-check"
  65. ],
  66. "typedef": [
  67. "callSignature",
  68. "catchClause",
  69. "indexSignature",
  70. "parameter",
  71. "propertySignature",
  72. "variableDeclarator"
  73. ],
  74. "typedef-whitespace": [
  75. true,
  76. {
  77. "call-signature": "nospace",
  78. "index-signature": "nospace",
  79. "parameter": "nospace",
  80. "property-declaration": "nospace",
  81. "variable-declaration": "nospace"
  82. }
  83. ],
  84. "variable-name": [
  85. true,
  86. "ban-keywords"
  87. ],
  88. "whitespace": [
  89. true,
  90. "check-branch",
  91. "check-decl",
  92. "check-operator",
  93. "check-separator",
  94. "check-type",
  95. "check-rest-spread",
  96. "check-type-operator"
  97. ]
  98. }
  99. }