Enable consistent-type-imports eslint rule (#5205)

This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2022-04-06 10:34:16 -04:00
1 parent 93a8d0f157
commit 1a29759bff
402 files changed
+991 -503

No files matched your search

@@ -8,7 +8,8 @@ import "./add-namespace-dialog.scss";
import React from "react";
import { observable, makeObservable } from "mobx";
import { observer } from "mobx-react";
import { Dialog, DialogProps } from "../dialog";
import type { DialogProps } from "../dialog";
import { Dialog } from "../dialog";
import { Wizard, WizardStep } from "../wizard";
import type { Namespace } from "../../../common/k8s-api/endpoints";
import { Input } from "../input";
@@ -9,7 +9,8 @@ import React from "react";
import { computed, makeObservable, observable, reaction } from "mobx";
import { disposeOnUnmount, observer } from "mobx-react";
import { DrawerItem } from "../drawer";
import { boundMethod, cssNames, Disposer } from "../../utils";
import type { Disposer } from "../../utils";
import { boundMethod, cssNames } from "../../utils";
import { getMetricsForNamespace, type IPodMetrics, Namespace } from "../../../common/k8s-api/endpoints";
import type { KubeObjectDetailsProps } from "../kube-object-details";
import { Link } from "react-router-dom";
@@ -7,7 +7,8 @@ import "./namespace-select-filter.scss";
import React from "react";
import { observer } from "mobx-react";
import { components, OptionTypeBase, PlaceholderProps } from "react-select";
import type { OptionTypeBase, PlaceholderProps } from "react-select";
import { components } from "react-select";
import { Icon } from "../icon";
import { NamespaceSelect } from "./namespace-select";
@@ -8,7 +8,8 @@ import "./namespace-select.scss";
import React from "react";
import { computed, makeObservable } from "mobx";
import { observer } from "mobx-react";
import { Select, SelectOption, SelectProps } from "../select";
import type { SelectOption, SelectProps } from "../select";
import { Select } from "../select";
import { cssNames } from "../../utils";
import { Icon } from "../icon";
import type { NamespaceStore } from "./namespace-store/namespace.store";
@@ -3,9 +3,12 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { action, comparer, computed, IReactionDisposer, makeObservable, reaction } from "mobx";
import { autoBind, noop, StorageHelper, toggle } from "../../../utils";
import { KubeObjectStore, KubeObjectStoreLoadingParams } from "../../../../common/k8s-api/kube-object.store";
import type { IReactionDisposer } from "mobx";
import { action, comparer, computed, makeObservable, reaction } from "mobx";
import type { StorageHelper } from "../../../utils";
import { autoBind, noop, toggle } from "../../../utils";
import type { KubeObjectStoreLoadingParams } from "../../../../common/k8s-api/kube-object.store";
import { KubeObjectStore } from "../../../../common/k8s-api/kube-object.store";
import { Namespace, namespacesApi } from "../../../../common/k8s-api/endpoints/namespaces.api";
interface Dependencies {
@@ -4,8 +4,9 @@
*/
import { getInjectable } from "@ogre-tools/injectable";
import { computed } from "mobx";
import type {
SidebarItemRegistration } from "../layout/sidebar-items.injectable";
import {
SidebarItemRegistration,
sidebarItemsInjectionToken,
} from "../layout/sidebar-items.injectable";
import { Icon } from "../icon";