Closed Bug 1792398 Opened 3 years ago Closed 3 years ago

Enable ESLint rule strict on mjs / module files

Categories

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

Tracking

(firefox107 fixed)

RESOLVED FIXED
Tracking Status
firefox107 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

The ESLint strict rule, will disallow "use strict"; in files it knows are modules.

Since modules are run in strict mode already, the "use strict"; directive is not necessary.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/849faf753208 Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers

Thanks, I've updated the line number to match the file change.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0679274d6ed5 Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers

Backed out changeset 0679274d6ed5 (Bug 1792398) for causing bc failures on browser_sendQuery.js.
Backout link
Push with failures <--> bc9
Failure Log

Flags: needinfo?(standard8)

Sorry, didn't spot there was two related tests failing the same way. Pushing to try this time.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8bce21098fc4 Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Regressions: 1792570
No longer regressions: 1792570
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: