Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101526

Eslint not woking anymore due to missing eslint-plugin-mongodb dependency

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-03-03, CAR Team 2025-03-17
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In SERVER-99572 we made eslint depends on a custom internal plugin eslint-plugin-mongodb .

      This dependency was not reflected in package.json and thus this broke the direct usage of eslint command (not through bazel).

      In particular, if I do:

      // Install all dependencies from package.json
      npm install
      // Run eslint directly
      ./node_modules/eslint/bin/eslint.js

      I get the following error

      Oops! Something went wrong! :(
      ESLint: 9.19.0
      Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'eslint-plugin-mongodb' imported from /home/ael/data/mongodb/code/dev/eslint.config.mjs 

       

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None