chore: Lint shared directory

This commit is contained in:
Tom Moor
2020-06-22 21:29:21 -07:00
parent 26f6961c82
commit 9be5597f4b
27 changed files with 342 additions and 341 deletions

View File

@ -1,10 +1,10 @@
// @flow
import { deburr } from 'lodash';
import naturalSort from 'natural-sort';
import { deburr } from "lodash";
import naturalSort from "natural-sort";
type NaturalSortOptions = {
caseSensitive?: boolean,
direction?: 'asc' | 'desc',
direction?: "asc" | "desc",
};
const sorter = naturalSort();
@ -13,7 +13,7 @@ function getSortByField<T: Object>(
item: T,
keyOrCallback: string | (T => string)
) {
if (typeof keyOrCallback === 'string') {
if (typeof keyOrCallback === "string") {
return deburr(item[keyOrCallback]);
}