tslint.json 418 B

1234567891011
  1. {
  2. "rules": {
  3. "promise-function-async": false
  4. },
  5. "meta": {
  6. "category": "typescript-specific",
  7. "description": "`async` 函数的返回值必须是 `Promise`",
  8. "reason": "有时 `async` 函数在某个分支是同步的,不需要返回 `Promise`\nRequires Type Info 的规则,无法在编辑器中显示错误,不方便修复",
  9. "requires-type-info": true
  10. }
  11. }