Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (manual fixes). r=mossop

Depends on D8389

Differential Revision: https://phabricator.services.mozilla.com/D8391

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Banner 2018-10-19 08:33:17 +00:00
Родитель ceaeb93550
Коммит 1ffb981b68
9 изменённых файлов: 20 добавлений и 17 удалений

Просмотреть файл

@ -403,7 +403,8 @@ const TEST_DATA = [
// Regression test for bug 1287620.
{
input: "color: blue \\9 no\\_need",
expected: [{name: "color", value: "blue \\9 no_need", priority: "", offsets: [0, 23]}],
expected: [{name: "color", value: "blue \\9 no_need",
priority: "", offsets: [0, 23]}],
},
// Regression test for bug 1297890 - don't paste tokens.

Просмотреть файл

@ -46,7 +46,8 @@ const testCases = [
getCookieId("c_encoded", "test1.example.org",
"/browser/devtools/client/storage/test/"),
[
{name: "c_encoded", value: encodeURIComponent(JSON.stringify({foo: {foo1: "bar"}}))},
{name: "c_encoded",
value: encodeURIComponent(JSON.stringify({foo: {foo1: "bar"}}))},
],
],
[null, [

Просмотреть файл

@ -250,7 +250,8 @@ class Message extends Component {
frame,
onClick: onFrameClick,
showEmptyPathAsHost: true,
sourceMapService: serviceContainer ? serviceContainer.sourceMapService : undefined,
sourceMapService:
serviceContainer ? serviceContainer.sourceMapService : undefined,
}) : null
);

Просмотреть файл

@ -884,7 +884,7 @@ function MakeIteratorWrapper(items, method) {
// we don't create an inferred name for this function at runtime.
[std_iterator]: function IteratorMethod() {
return callContentFunction(method, items);
}
},
};
}

Просмотреть файл

@ -225,7 +225,7 @@ var collatorInternalProperties = {
addSpecialMissingLanguageTags(locales);
return (this._availableLocales = locales);
},
relevantExtensionKeys: ["co", "kn", "kf"]
relevantExtensionKeys: ["co", "kn", "kf"],
};
/**
@ -286,7 +286,7 @@ function collatorSortLocaleData() {
return "false";
},
kf: collatorSortCaseFirstDefault,
}
},
};
/* eslint-enable object-shorthand */
}
@ -313,7 +313,7 @@ function collatorSearchLocaleData() {
kf: function() {
return "false";
},
}
},
};
/* eslint-enable object-shorthand */
}

Просмотреть файл

@ -486,7 +486,7 @@ function parseLanguageTag(locale) {
if (hasOwn(localeLowercase, grandfatheredMappings)) {
return {
locale: grandfatheredMappings[localeLowercase],
grandfathered: true
grandfathered: true,
};
}

Просмотреть файл

@ -754,7 +754,7 @@ var dateTimeFormatInternalProperties = {
addSpecialMissingLanguageTags(locales);
return (this._availableLocales = locales);
},
relevantExtensionKeys: ["ca", "nu", "hc"]
relevantExtensionKeys: ["ca", "nu", "hc"],
};
function dateTimeFormatLocaleData() {
@ -769,8 +769,8 @@ function dateTimeFormatLocaleData() {
nu: intl_numberingSystem,
hc: () => {
return null;
}
}
},
},
};
}
@ -898,7 +898,7 @@ var icuPatternCharToComponent = {
s: "second",
z: "timeZoneName",
v: "timeZoneName",
V: "timeZoneName"
V: "timeZoneName",
};
/**

Просмотреть файл

@ -22,7 +22,7 @@ var numberFormatInternalProperties = {
addSpecialMissingLanguageTags(locales);
return (this._availableLocales = locales);
},
relevantExtensionKeys: ["nu"]
relevantExtensionKeys: ["nu"],
};
/**
@ -381,7 +381,7 @@ function getNumberingSystems(locale) {
"fullwide", "gujr", "guru", "hanidec", "khmr",
"knda", "laoo", "latn", "limb", "mlym",
"mong", "mymr", "orya", "tamldec", "telu",
"thai", "tibt"
"thai", "tibt",
];
}
@ -390,7 +390,7 @@ function numberFormatLocaleData() {
nu: getNumberingSystems,
default: {
nu: intl_numberingSystem,
}
},
};
}
@ -483,7 +483,7 @@ function Intl_NumberFormat_resolvedOptions() {
minimumIntegerDigits: internals.minimumIntegerDigits,
minimumFractionDigits: internals.minimumFractionDigits,
maximumFractionDigits: internals.maximumFractionDigits,
useGrouping: internals.useGrouping
useGrouping: internals.useGrouping,
};
// currency and currencyDisplay are only present for currency formatters.

Просмотреть файл

@ -138,7 +138,7 @@ const ReflectLoader = new class {
ObjectDefineProperty(components, n++, {
__proto__: null,
value: part,
writable: true, enumerable: true, configurable: true
writable: true, enumerable: true, configurable: true,
});
}