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

Re-enable the eslint rule @typescript-eslint/no-misused-promises

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tech debt
    • None
    • 2

      /Users/leroux.bodenstein/mongo/mongosh/packages/logging/src/analytics-helpers.ts
        357:33  error  Promise returned in function argument where a void return was expected  @typescript-eslint/no-misused-promises
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/async-repl.ts
        153:30  error  Promise-returning function provided to variable where a void return was expected  @typescript-eslint/no-misused-promises
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/cli-repl.spec.ts
        1219:28  error  Promise returned in function argument where a void return was expected  @typescript-eslint/no-misused-promises
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/node-runtime-worker-thread/src/spawn-child-from-source.ts
        29:22  error  Promise returned in function argument where a void return was expected  @typescript-eslint/no-misused-promises
        53:41  error  Promise returned in function argument where a void return was expected  @typescript-eslint/no-misused-promises
        89:36  error  Promise returned in function argument where a void return was expected  @typescript-eslint/no-misused-promises
        96:44  error  Promise returned in function argument where a void return was expected  @typescript-eslint/no-misused-promises
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/browser-repl/src/components/editor.tsx
        183:22  error  Promise-returning function provided to attribute where a void return was expected  @typescript-eslint/no-misused-promises
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: