Closed Bug 1846758 Opened 1 year ago Closed 1 year ago

Automatically mark *.worker.(m)js files as belonging to the worker environment

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox118 fixed)

RESOLVED FIXED
Tracking Status
firefox118 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

To aid developers and simplify ESLint, I think we should add a convention whereby *.worker.(m)js files are automatically marked as belonging to the ESLint worker environment, and disable the browser environment.

This will help to highlight the files that are really workers, and also give ESLint a tool to mark these as workers, without using /* eslint-env worker/* markers.

Blocks: 1847110
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f69a9799b27 Automatically mark *.worker.?js files as belonging to the worker environment. r=Gijs https://hg.mozilla.org/integration/autoland/rev/d6b43a001c3c Change ESLint env inclusions from mozilla/chrome-worker to worker where ctypes is not used. r=Gijs,devtools-reviewers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: