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

Commit c03b3bc

Browse files
committed
Bug 1938452 - Move browser/components/newtab eslintrc rules to browser/extensions/newtab. r=home-newtab-reviewers,frontend-codestyle-reviewers,Standard8,thecount
Differential Revision: https://phabricator.services.mozilla.com/D233876
1 parent c187792 commit c03b3bc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.eslintrc-rollouts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ const rollouts = [
104104
"browser/actors/**",
105105
"browser/base/content/**",
106106
"browser/components/**",
107+
"browser/extensions/newtab/**",
107108
"browser/modules/BrowserUsageTelemetry.sys.mjs",
108109
"browser/modules/URILoadingHelper.sys.mjs",
109110
"devtools/client/**",

browser/components/newtab/.eslintrc.js renamed to browser/extensions/newtab/.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ module.exports = {
114114
"accessor-pairs": ["error", { setWithoutGet: true, getWithoutSet: false }],
115115
"array-callback-return": "error",
116116
"block-scoped-var": "error",
117+
// XXX Bug 1326071 - This should be reduced down - probably to 20 or to
118+
// be removed & synced with the mozilla/recommended value.
119+
complexity: ["error", 61],
117120
"consistent-this": ["error", "use-bind"],
118121
eqeqeq: "error",
119122
"func-name-matching": "error",

0 commit comments

Comments
 (0)