Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files * Update eslint plugin * updated files
This commit is contained in:
@@ -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],
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user