diff --git a/.eslintrc.json b/.eslintrc.json index 939d53b33a..c9a0e4c132 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -87,6 +87,7 @@ } ], "radix": "error", + "sort-imports": ["error", {"ignoreDeclarationSort": true}], "spaced-comment": ["error", "always", {"markers": ["/"]}], "strict": "error", "unicorn/consistent-function-scoping": "off", diff --git a/static/js/popovers.js b/static/js/popovers.js index 33a1191a52..381a213339 100644 --- a/static/js/popovers.js +++ b/static/js/popovers.js @@ -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"; diff --git a/static/js/rendered_markdown.js b/static/js/rendered_markdown.js index aeae720772..8d3ee5ac5f 100644 --- a/static/js/rendered_markdown.js +++ b/static/js/rendered_markdown.js @@ -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"; diff --git a/static/js/timerender.js b/static/js/timerender.js index 94976f2af1..8a5887ff34 100644 --- a/static/js/timerender.js +++ b/static/js/timerender.js @@ -1,6 +1,6 @@ import { - differenceInMinutes, differenceInCalendarDays, + differenceInMinutes, format, formatISO, isEqual,