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:
@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user