Add ESLint rule to reject ChromeUtils.import
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1843797
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Add ESLint rule to reject ChromeUtils.import
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox118 fixed)
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
(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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK