chore: Lint shared directory
This commit is contained in:
@ -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]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user