Open Bug 1778105 Opened 2 years ago Updated 7 months ago

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

Categories

(Firefox :: New Tab Page, task, P3)

task

Tracking

()

People

(Reporter: standard8, Unassigned)

References

(Blocks 1 open bug)

Details

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

Blocks: 1773467
Severity: -- → N/A
Priority: -- → P3
Depends on: 1881816
You need to log in before you can comment on or make changes to this bug.