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

+2 -1
View File
@@ -4,7 +4,8 @@
*/
// Type guard for checking valid react node to use in render
import React, { ReactNode } from "react";
import type { ReactNode } from "react";
import React from "react";
export function isReactNode(node: ReactNode): node is ReactNode {
return React.isValidElement(node)
+2 -1
View File
@@ -3,7 +3,8 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { apiResourceRecord, KubeResource } from "../../common/rbac";
import type { KubeResource } from "../../common/rbac";
import { apiResourceRecord } from "../../common/rbac";
export const ResourceNames: Record<KubeResource, string> = {
"namespaces": "Namespaces",
+2 -1
View File
@@ -5,7 +5,8 @@
// Helper for working with storages (e.g. window.localStorage, NodeJS/file-system, etc.)
import { action, comparer, computed, makeObservable, observable, toJS, when } from "mobx";
import { produce, Draft, isDraft } from "immer";
import type { Draft } from "immer";
import { produce, isDraft } from "immer";
import { isEqual, isPlainObject } from "lodash";
import logger from "../../main/logger";