Closed Bug 1843797 Opened 1 year ago Closed 1 year ago

Add ESLint rule to reject ChromeUtils.import

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(firefox118 fixed)

RESOLVED FIXED
Tracking Status
firefox118 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

(In reply to Mark Banner (:standard8) (afk until 24th July) from bug 1835030 comment #0)

As esm-ification is getting nearer to completion, we'll need to additionally update imports in .html/.xhtml files.

They look fairly simple, so we might be able to use a ESLint rule on a lot of them to do the initial fixing, and then maybe land just the rule (without the auto-fix) to stop any new ones being added.

Attachment #9344109 - Attachment description: WIP: Bug 1843797 - Add ESLint rule to reject ChromeUtils.import. → Bug 1843797 - Add ESLint rule to reject ChromeUtils.import.
Attachment #9344109 - Attachment description: Bug 1843797 - Add ESLint rule to reject ChromeUtils.import. → WIP: Bug 1843797 - Add ESLint rule to reject ChromeUtils.import.
Attachment #9344109 - Attachment description: WIP: Bug 1843797 - Add ESLint rule to reject ChromeUtils.import. → Bug 1843797 - Add ESLint rule to reject ChromeUtils.import. r?Standard8!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/9f0c33658467 Add ESLint rule to reject ChromeUtils.import. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: