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

Re-enable the eslint rule @typescript-eslint/no-var-requires

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

      /Users/leroux.bodenstein/mongo/mongosh/packages/async-rewriter2/src/async-writer-babel.ts
        63:9  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        64:9  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        65:9  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/compile/signable-compiler.ts
        11:27  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/download-center/config.spec.ts
        306:42  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/homebrew/generate-formula.spec.ts
        6:10  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/homebrew/publish-to-homebrew.spec.ts
        6:10  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/homebrew/update-homebrew-fork.spec.ts
        6:10  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/index.ts
        36:30  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/run-draft.spec.ts
        16:10  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/run-publish.spec.ts
        16:10  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/src/run-upload.spec.ts
        9:10  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/build/test/helpers.ts
        21:41  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/i18n/src/missing-help.spec.ts
        39:18  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/service-provider-server/src/cli-service-provider.ts
        284:14  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        284:61  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        299:40  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        305:15  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        333:25  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/shell-api/src/collection.spec.ts
        35:19  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/shell-api/src/field-level-encryption.spec.ts
        818:9  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/shell-api/src/shell-api.spec.ts
        502:26  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        637:26  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/shell-api/src/shell-api.ts
        283:21  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/shell-evaluator/src/shell-evaluator.spec.ts
        3:19  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/editor/src/editor.ts
        15:18  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/build-info.ts
        70:25  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/cli-repl.ts
         227:25  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
         792:25  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        1063:25  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/mongosh-repl.spec.ts
        1003:16  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/mongosh-repl.ts
        509:25  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/run.spec.ts
        52:12  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        59:12  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        66:12  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/run.ts
          5:5   error  Require statement not part of import statement  @typescript-eslint/no-var-requires
         40:25  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        159:11  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/cli-repl/src/tls-certificate-selector.spec.ts
        18:7  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      
      /Users/leroux.bodenstein/mongo/mongosh/packages/e2e-tests/test/e2e.spec.ts
         34:34  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        336:29  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
        390:24  error  Require statement not part of import statement  @typescript-eslint/no-var-requires
      

            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: