mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 1857866 - Enable ESLint rule complexity on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190438
This commit is contained in:
parent
9074f1b101
commit
3357a854df
@ -536,7 +536,6 @@ module.exports = {
|
||||
"dom/serviceworkers/test/test_serviceworkermanager.xhtml",
|
||||
"dom/tests/mochitest/chrome/sizemode_attribute.xhtml",
|
||||
"dom/tests/mochitest/chrome/test_cyclecollector.xhtml",
|
||||
"dom/tests/mochitest/chrome/window_focus.xhtml",
|
||||
"dom/workers/test/test_WorkerDebugger.xhtml",
|
||||
"dom/workers/test/test_WorkerDebugger_console.xhtml",
|
||||
"dom/workers/test/test_fileReadSlice.xhtml",
|
||||
@ -546,7 +545,6 @@ module.exports = {
|
||||
rules: {
|
||||
"mozilla/no-useless-removeEventListener": "off",
|
||||
"mozilla/use-services": "off",
|
||||
complexity: "off",
|
||||
"no-caller": "off",
|
||||
"no-lone-blocks": "off",
|
||||
"no-redeclare": "off",
|
||||
|
@ -94,6 +94,7 @@ function eventOccured(event)
|
||||
gEvents += event.type + ": " + id;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line complexity
|
||||
function expectFocusShift(callback, expectedWindow, expectedElement, focusChanged, testid)
|
||||
{
|
||||
if (expectedWindow == null)
|
||||
@ -358,6 +359,7 @@ function getById(id)
|
||||
return element;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line complexity
|
||||
function startTest()
|
||||
{
|
||||
if (gTestStarted)
|
||||
|
Loading…
x
Reference in New Issue
Block a user