tslint.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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-construct: true
  24. no-debugger: true
  25. no-duplicate-variable: true
  26. no-eval: true
  27. no-internal-module: true
  28. no-multi-spaces: true
  29. no-namespace: true
  30. no-reference: true
  31. no-shadowed-variable: true
  32. no-string-literal: true
  33. no-trailing-whitespace: true
  34. no-unused-expression: true
  35. no-var-keyword: true
  36. one-variable-per-declaration:
  37. - true
  38. - ignore-for-loop
  39. prefer-const:
  40. - true
  41. - destructuring: all
  42. radix: true
  43. space-in-parens: true
  44. switch-default: true
  45. trailing-comma:
  46. - true
  47. - singleline: never
  48. multiline: always
  49. esSpecCompliant: true
  50. triple-equals:
  51. - true
  52. - allow-null-check
  53. typedef-whitespace:
  54. - true
  55. - call-signature: nospace
  56. index-signature: nospace
  57. parameter: nospace
  58. property-declaration: nospace
  59. variable-declaration: nospace
  60. - call-signature: onespace
  61. index-signature: onespace
  62. parameter: onespace
  63. property-declaration: onespace
  64. variable-declaration: onespace
  65. use-isnan: true
  66. variable-name:
  67. - true
  68. - allow-leading-underscore
  69. - ban-keywords
  70. - check-format
  71. - allow-pascal-case
  72. jsx-no-lambda: false
  73. jsx-no-string-ref: false
  74. jsx-boolean-value:
  75. - true
  76. - never
  77. jsx-no-multiline-js: false
  78. whitespace:
  79. - true
  80. - check-branch
  81. - check-decl
  82. - check-operator
  83. - check-module
  84. - check-separator
  85. - check-rest-spread
  86. - check-type
  87. - check-type-operator
  88. - check-preblock