Closed Bug 1778110 Opened 2 years ago Closed 2 years ago

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

Categories

(DevTools :: General, task)

task

Tracking

(firefox108 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files, 1 obsolete file)

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 devtools files.

Assignee: nobody → standard8
Status: NEW → ASSIGNED
Blocks: 1799137

When we initially enabled the import checker, we enabled a set of rules that seemed reasonable.
However import/no-anonymous-default-export seems to strict for various cases around mozilla-central, and I don't
think it adds too much, so lets disable for now.

Attachment #9301997 - Attachment is obsolete: true
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0f42421d5fd1 Move devtools code to use mjs files, rather than defining sourceType for ESLint. r=ochameau https://hg.mozilla.org/integration/autoland/rev/c4b9d89c2325 Move devtools/client/webconsole to use mjs files, rather than defining sourceType for ESLint. r=ochameau
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: