Prettier: Upgrade to 2 (#30387)

* Updated package json but not updated source files

* Update eslint plugin

* updated files
This commit is contained in:
Torkel Ödegaard
2021-01-20 07:59:48 +01:00
committed by GitHub
parent f27450ed94
commit 1d689888b0
1069 changed files with 4370 additions and 5260 deletions
@@ -64,7 +64,7 @@ describe('DateMath', () => {
anchored = dateTime(anchor);
});
each(spans, span => {
each(spans, (span) => {
const nowEx = 'now-5' + span;
const thenEx = anchor + '||-5' + span;
@@ -90,7 +90,7 @@ describe('DateMath', () => {
now = dateTime();
});
each(spans, span => {
each(spans, (span) => {
it('should round now to the beginning of the ' + span, () => {
expect(dateMath.parse('now/' + span)!.format(format)).toEqual(now.startOf(span).format(format));
});
@@ -111,7 +111,7 @@ export function localTimeFormat(
timeZoneName: 'Z',
};
return parts.map(part => mapping[part.type] || part.value).join('');
return parts.map((part) => mapping[part.type] || part.value).join('');
}
export const systemDateFormats = new SystemDateFormatsState();
@@ -88,7 +88,7 @@ export const getTimeZoneGroups = memoize((includeInternal = false): GroupedTimeZ
return groups;
}, {});
return Object.keys(groups).map(name => ({
return Object.keys(groups).map((name) => ({
name,
zones: groups[name],
}));