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

Re-enable the eslint rule @typescript-eslint/restrict-plus-operands

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

      /Users/leroux.bodenstein/mongo/mongosh/packages/errors/scripts/extract-errors.ts
        297:44  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `string | undefined`  @typescript-eslint/restrict-plus-operands
        301:67  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`                 @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/async-rewriter2/src/async-writer-babel.spec.ts
        691:54  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        691:61  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        700:54  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        700:61  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        709:44  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        829:44  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        829:51  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        838:44  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        838:51  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        847:34  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/packaging/package/helpers.ts
        16:45  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `string | undefined`  @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/logging/src/analytics-helpers.spec.ts
        104:20  error  Operands of '+' operations must be a number or string. Got `string` + `number`  @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/shell-api/src/collection.spec.ts
        2143:48  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        2143:52  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/shell-api/src/helpers.ts
        633:12  error  Operands of '+' operations must be a number or string. Got `number` + `string`  @typescript-eslint/restrict-plus-operands
        636:12  error  Operands of '+' operations must be a number or string. Got `number` + `string`  @typescript-eslint/restrict-plus-operands
        639:12  error  Operands of '+' operations must be a number or string. Got `number` + `string`  @typescript-eslint/restrict-plus-operands
        642:5   error  Operands of '+' operations must be a number or string. Got `number` + `string`  @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/snippet-manager/src/snippet-manager.spec.ts
        758:9  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `string | undefined`  @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/format-output.ts
        112:28  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        116:28  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/mongosh-repl.ts
        226:26  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
        444:45  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
      
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/browser-repl/src/components/types/show-profile-output.tsx
        46:26  error  Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`  @typescript-eslint/restrict-plus-operands
      

            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: