Bug 1875216 - part 2: Remove linting for XPCOMUtils.defineLazyGetter r=arai,Standard8,frontend-codestyle-reviewers,mossop

Differential Revision: https://phabricator.services.mozilla.com/D202127
This commit is contained in:
Gregory Pappas
2025-02-03 14:49:37 +00:00
parent adf404cba5
commit cbb36dfedd
9 changed files with 2 additions and 120 deletions

View File

@@ -1,22 +0,0 @@
use-chromeutils-definelazygetter
================================
Require use of ``ChromeUtils.defineLazyGetter`` rather than ``XPCOMUtils.defineLazyGetter``.
Examples of incorrect code for this rule:
-----------------------------------------
.. code-block:: js
XPCOMUtils.defineLazyGetter(lazy, "textEncoder", function () {
return new TextEncoder();
});
Examples of correct code for this rule:
---------------------------------------
.. code-block:: js
ChromeUtils.defineLazyGetter(lazy, "textEncoder", function () {
return new TextEncoder();
});