tslint.yml 1.9 KB

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