tslint.json 468 B

123456789101112
  1. {
  2. "rules": {
  3. "await-promise": false
  4. },
  5. "meta": {
  6. "category": "functionality",
  7. "description": "`await` 必须接受 `Promise`",
  8. "reason": "promise-function-async 里已经允许 `async` 函数返回值为非 `Promise` 了,故也应该允许 `await` 接受非 `Promise`\nRequires Type Info 的规则,无法在编辑器中显示错误,不方便修复",
  9. "ts-only": true,
  10. "requires-type-info": true
  11. }
  12. }