mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
add eslint sort-keys rule and run codemod
This commit is contained in:
@@ -109,8 +109,8 @@ export function formatDataType(field, referenceTimestamp = null) {
|
||||
datetime(timestampString) {
|
||||
const timestamp = moment(timestampString);
|
||||
return {
|
||||
value: timestamp.from(referenceTimestamp ? moment(referenceTimestamp) : moment()),
|
||||
title: timestamp.utc().toISOString()
|
||||
title: timestamp.utc().toISOString(),
|
||||
value: timestamp.from(referenceTimestamp ? moment(referenceTimestamp) : moment())
|
||||
};
|
||||
},
|
||||
duration(durationSecondsString) {
|
||||
@@ -118,13 +118,13 @@ export function formatDataType(field, referenceTimestamp = null) {
|
||||
const humanizedDuration = humanizedRoundedDownDuration(duration);
|
||||
|
||||
return {
|
||||
value: humanizedDuration,
|
||||
title: humanizedDuration,
|
||||
value: humanizedDuration,
|
||||
};
|
||||
},
|
||||
};
|
||||
const format = formatters[field.dataType];
|
||||
return format
|
||||
? format(field.value)
|
||||
: { value: field.value, title: field.value };
|
||||
: { title: field.value, value: field.value };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user