Closed Bug 1778112 Opened 2 years ago Closed 1 year ago

Move DOM code to use mjs files, rather than defining sourceType for ESLint

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

With the transition to using ES modules rather than JSMs getting started, we are now using the .mjs extension for those files.

We'd like to transition our content code that is using modules to use the .mjs extension as well - the primary gains of this are that we a) don't need to manually specify sourceType: module for ESLint, b) this gives a visual distinction to developers that the file is a module rather than a regular JavaScript file.

This bug is for the dom/ files.

Assignee: nobody → standard8
Attachment #9343458 - Attachment description: WIP: Bug 1778112 - Move dom/base/test to use mjs files, rather than defining sourceType for ESLint. → Bug 1778112 - Move dom/base/test to use mjs files, rather than defining sourceType for ESLint. r?nika!
Status: NEW → ASSIGNED
Attachment #9343459 - Attachment description: WIP: Bug 1778112 - Move dom/tests/mochitest/script/ to use mjs files, rather than defining sourceType for ESLint. → Bug 1778112 - Move dom/tests/mochitest/script/ to use mjs files, rather than defining sourceType for ESLint. r?nika!
Attachment #9343460 - Attachment description: WIP: Bug 1778112 - Move dom/tests/browser/ to use mjs files, rather than defining sourceType for ESLint. → Bug 1778112 - Move dom/tests/browser/ to use mjs files, rather than defining sourceType for ESLint. r?nika!
Attachment #9343461 - Attachment description: WIP: Bug 1778112 - Move dom/quota/test to use mjs files, rather than defining sourceType for ESLint. → Bug 1778112 - Move dom/quota/test to use mjs files, rather than defining sourceType for ESLint. r?nika!
Attachment #9343462 - Attachment description: WIP: Bug 1778112 - Move dom/base/test/jsmodules/ to use mjs files, rather than defining sourceType for ESLint. → Bug 1778112 - Move dom/base/test/jsmodules/ to use mjs files, rather than defining sourceType for ESLint. r?nika!
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5e24c85c663c Move dom/base/test to use mjs files, rather than defining sourceType for ESLint. r=nika https://hg.mozilla.org/integration/autoland/rev/16e5f361cab8 Move dom/tests/mochitest/script/ to use mjs files, rather than defining sourceType for ESLint. r=nika https://hg.mozilla.org/integration/autoland/rev/23ca6d57dfad Move dom/tests/browser/ to use mjs files, rather than defining sourceType for ESLint. r=nika https://hg.mozilla.org/integration/autoland/rev/e0ed2dd89d6f Move dom/quota/test to use mjs files, rather than defining sourceType for ESLint. r=asuth https://hg.mozilla.org/integration/autoland/rev/f502bc8aaed6 Move dom/base/test/jsmodules/ to use mjs files, rather than defining sourceType for ESLint. r=allstarschh
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: