Closed Bug 1950917 Opened 4 months ago Closed 2 months ago

eslint's `--setup` switch seems to run the linter instead of setting it up

Categories

(Developer Infrastructure :: Lint and Formatting, defect)

defect

Tracking

(firefox140 fixed)

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: bytesized, Assigned: standard8)

Details

Attachments

(1 file)

I'm pretty confident that ./mach eslint --setup used to make sure eslint was properly installed. The --help text seems to indicate that it should. But it doesn't seem to work. Instead it does this:

> ./mach eslint --setup
warning: linting the entire repo takes a long time, using --outgoing and --workdir instead. If you want to lint the entire repo, run `./mach lint .`

But I don't want it to lint anything. I just want it to check that my linter configuration is up-to-date.

This is on Windows, if that matters.

The severity field is not set for this bug.
:andi, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bpostelnicu)
Severity: -- → S3
Flags: needinfo?(bpostelnicu)
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9da6ed50cc51 Avoid warning about linting the entire repo when only running setup. r=linter-reviewers,ahal
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: