tslint.json 463 B

123456789101112
  1. {
  2. "rules": {
  3. "strict-type-predicates": false
  4. },
  5. "meta": {
  6. "category": "functionality",
  7. "description": "禁止出现永远为 `true` 或永远为 `false` 的条件判断(通过类型预测出一个表达式为 `true` 还是 `false`)",
  8. "reason": "没必要限制\nRequires Type Info 的规则,无法在编辑器中显示错误,不方便修复",
  9. "ts-only": true,
  10. "requires-type-info": true
  11. }
  12. }