Closed Bug 1653195 Opened 5 years ago Closed 5 years ago

eslint is conflicted about what version of eslint-visitor-keys to require

Categories

(Developer Infrastructure :: Lint and Formatting, defect, P1)

Tracking

(firefox-esr68 unaffected, firefox-esr78 unaffected, firefox78 unaffected, firefox79 unaffected, firefox80 fixed)

RESOLVED FIXED
mozilla80
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox78 --- unaffected
firefox79 --- unaffected
firefox80 --- fixed

People

(Reporter: Gijs, Assigned: standard8)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The m-c global package-lock.json file says:

    "eslint-visitor-keys": {
      "version": "1.3.0",
      "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
      "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
      "dev": true
    },

But the eslint mozilla plugin requires 1.2.0:

        "eslint-visitor-keys": {
          "version": "1.2.0",
          "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.2.0.tgz",
          "integrity": "sha512-WFb4ihckKil6hu3Dp798xdzSfddwKKU3+nGniKF6HfeW6OLd2OUDEPP7TcHtB5+QXOKg2s6B2DaMPE1Nn/kxKQ==",
          "dev": true
        }

This (or some other package.json / package-lock.json conflict?) appears to result in all my machines (my mac, my linux vm, etc.) that have the linter configured to run as a commit hook, getting output along the lines of:

eslint-visitor-keys v1.3.0 should be v1.2.0.
Installing eslint for mach using "path/to/.mozbuild/node/bin/node path/to/.mozbuild/node/bin/npm ci --loglevel=error --scripts-prepend-node-path"...

eslint installed successfully!

NOTE: Your local eslint binary is at path/to/mozilla-central/node_modules/.bin/eslint

every time I commit, and commits are correspondingly delayed...

Set release status flags based on info from the regressing bug 1652130

Assignee: nobody → standard8
Severity: -- → S4
Iteration: --- → 80.2 - July 13 - July 26
Points: --- → 2
Priority: -- → P1
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/27d4f2761c88 Update eslint-plugin-mozilla's eslint-visitor-keys to be the same as the top-level include. r=mossop
No longer regressions: 1654041
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Has Regression Range: --- → yes
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: