Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-784

Add linter rule to await wherever await is necessary

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 3
    • Not Needed
    • Iteration Hamburg

      I think we talked about this a while ago, there’s a linter rule that tells us to add await in front of otherwise unhandled promises. We should enable it.

      I know I tried to add it a while ago, but it turned out to be non-trivial because it requires using the TS information inside the linter, which is possible but requires config changes.

      I almost forgot an `await` today, which reminded me to create this ticket.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: