tslint.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. defaultSeverity: error
  2. globals:
  3. - ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true
  4. extends:
  5. - tslint-react
  6. - tslint-eslint-rules
  7. - tslint-config-prettier
  8. jsRules:
  9. rules:
  10. class-name: true
  11. eofline: true
  12. forin: true
  13. jsdoc-format: false
  14. label-position: true
  15. member-ordering:
  16. - true
  17. - order: statics-first
  18. new-parens: true
  19. no-arg: true
  20. no-bitwise: true
  21. no-conditional-assignment: true
  22. no-consecutive-blank-lines: true
  23. no-console:
  24. - true
  25. - debug
  26. - info
  27. - log
  28. - time
  29. - timeEnd
  30. - trace
  31. - warn
  32. no-construct: true
  33. no-debugger: true
  34. no-duplicate-variable: true
  35. no-eval: true
  36. no-internal-module: true
  37. no-multi-spaces: true
  38. no-namespace: true
  39. no-reference: true
  40. no-shadowed-variable: true
  41. no-string-literal: true
  42. no-trailing-whitespace: true
  43. no-unused-expression: true
  44. no-var-keyword: true
  45. one-variable-per-declaration:
  46. - true
  47. - ignore-for-loop
  48. prefer-const:
  49. - true
  50. - destructuring: all
  51. radix: true
  52. space-in-parens: true
  53. switch-default: true
  54. trailing-comma:
  55. - true
  56. - singleline: never
  57. multiline: always
  58. esSpecCompliant: true
  59. triple-equals:
  60. - true
  61. - allow-null-check
  62. typedef-whitespace:
  63. - true
  64. - call-signature: nospace
  65. index-signature: nospace
  66. parameter: nospace
  67. property-declaration: nospace
  68. variable-declaration: nospace
  69. - call-signature: onespace
  70. index-signature: onespace
  71. parameter: onespace
  72. property-declaration: onespace
  73. variable-declaration: onespace
  74. use-isnan: true
  75. variable-name:
  76. - true
  77. - allow-leading-underscore
  78. - ban-keywords
  79. - check-format
  80. - allow-pascal-case
  81. jsx-no-lambda: false
  82. jsx-no-string-ref: false
  83. jsx-boolean-value:
  84. - true
  85. - never
  86. jsx-no-multiline-js: false
  87. whitespace:
  88. - true
  89. - check-branch
  90. - check-decl
  91. - check-operator
  92. - check-module
  93. - check-separator
  94. - check-rest-spread
  95. - check-type
  96. - check-type-operator
  97. - check-preblock