Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit dcafa05

Browse files
committed
Bug 1875216 - part 2: Remove linting for XPCOMUtils.defineLazyGetter r=arai,Standard8,frontend-codestyle-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D202127
1 parent f9e034e commit dcafa05

File tree

9 files changed

+2
-120
lines changed

9 files changed

+2
-120
lines changed

docs/code-quality/lint/linters/eslint-plugin-mozilla/rules/use-chromeutils-definelazygetter.rst

Lines changed: 0 additions & 22 deletions
This file was deleted.

tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ const coreRules = {
7676
"mozilla/reject-scriptableunicodeconverter": "warn",
7777
"mozilla/rejects-requires-await": "error",
7878
"mozilla/use-cc-etc": "error",
79-
"mozilla/use-chromeutils-definelazygetter": "error",
8079
"mozilla/use-chromeutils-generateqi": "error",
8180
"mozilla/use-console-createInstance": "error",
8281
"mozilla/use-default-preference-values": "error",

tools/lint/eslint/eslint-plugin-mozilla/lib/globals.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const callExpressionDefinitions = [
1818
/^loader\.lazyGetter\((?:globalThis|this), "(\w+)"/,
1919
/^loader\.lazyServiceGetter\((?:globalThis|this), "(\w+)"/,
2020
/^loader\.lazyRequireGetter\((?:globalThis|this), "(\w+)"/,
21-
/^XPCOMUtils\.defineLazyGetter\((?:globalThis|this), "(\w+)"/,
2221
/^ChromeUtils\.defineLazyGetter\((?:globalThis|this), "(\w+)"/,
2322
/^XPCOMUtils\.defineLazyPreferenceGetter\((?:globalThis|this), "(\w+)"/,
2423
/^XPCOMUtils\.defineLazyScriptGetter\((?:globalThis|this), "(\w+)"/,

tools/lint/eslint/eslint-plugin-mozilla/lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ const plugin = {
7575
"reject-top-level-await": require("./rules/reject-top-level-await"),
7676
"rejects-requires-await": require("./rules/rejects-requires-await"),
7777
"use-cc-etc": require("./rules/use-cc-etc"),
78-
"use-chromeutils-definelazygetter": require("./rules/use-chromeutils-definelazygetter"),
7978
"use-chromeutils-generateqi": require("./rules/use-chromeutils-generateqi"),
8079
"use-console-createInstance": require("./rules/use-console-createInstance"),
8180
"use-default-preference-values": require("./rules/use-default-preference-values"),

tools/lint/eslint/eslint-plugin-mozilla/lib/rules/use-chromeutils-definelazygetter.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

tools/lint/eslint/eslint-plugin-mozilla/lib/rules/valid-lazy.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const callExpressionDefinitions = [
2424
/^loader\.lazyGetter\(lazy, "(\w+)"/,
2525
/^loader\.lazyServiceGetter\(lazy, "(\w+)"/,
2626
/^loader\.lazyRequireGetter\(lazy, "(\w+)"/,
27-
/^XPCOMUtils\.defineLazyGetter\(lazy, "(\w+)"/,
2827
/^Integration\.downloads\.defineESModuleGetter\(lazy, "(\w+)"/,
2928
/^ChromeUtils\.defineLazyGetter\(lazy, "(\w+)"/,
3029
/^XPCOMUtils\.defineLazyPreferenceGetter\(lazy, "(\w+)"/,

tools/lint/eslint/eslint-plugin-mozilla/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/lint/eslint/eslint-plugin-mozilla/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-mozilla",
3-
"version": "4.1.0",
3+
"version": "4.2.0",
44
"description": "A collection of rules that help enforce JavaScript coding standard in the Mozilla project.",
55
"keywords": [
66
"eslint",

tools/lint/eslint/eslint-plugin-mozilla/tests/use-chromeutils-definelazygetter.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)