eslint: Enable sort-imports for member sorting.

This sorts the members imported within each individual declaration; we
use import/order for sorting multiple declarations.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-04-03 15:02:34 -07:00 committed by Anders Kaseorg
parent c40dfaa616
commit 6dc783e562
4 changed files with 4 additions and 3 deletions

View File

@ -87,6 +87,7 @@
}
],
"radix": "error",
"sort-imports": ["error", {"ignoreDeclarationSort": true}],
"spaced-comment": ["error", "always", {"markers": ["/"]}],
"strict": "error",
"unicorn/consistent-function-scoping": "off",

View File

@ -1,5 +1,5 @@
import ClipboardJS from "clipboard";
import {parseISO, formatISO, add, set} from "date-fns";
import {add, formatISO, parseISO, set} from "date-fns";
import ConfirmDatePlugin from "flatpickr/dist/plugins/confirmDate/confirmDate";
import $ from "jquery";

View File

@ -1,5 +1,5 @@
import ClipboardJS from "clipboard";
import {parseISO, isValid} from "date-fns";
import {isValid, parseISO} from "date-fns";
import $ from "jquery";
import copy_code_button from "../templates/copy_code_button.hbs";

View File

@ -1,6 +1,6 @@
import {
differenceInMinutes,
differenceInCalendarDays,
differenceInMinutes,
format,
formatISO,
isEqual,