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 @@
*/
import { boundMethod, boundClass } from "autobind-decorator";
import autoBindClass, { Options } from "auto-bind";
import type { Options } from "auto-bind";
import autoBindClass from "auto-bind";
import autoBindReactClass from "auto-bind/react";
// Automatically bind methods to their class instance
+2 -1
View File
@@ -3,7 +3,8 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { action, IInterceptable, IInterceptor, IListenable, ISetWillChange, observable, ObservableMap, ObservableSet } from "mobx";
import type { IInterceptable, IInterceptor, IListenable, ISetWillChange, ObservableMap } from "mobx";
import { action, observable, ObservableSet } from "mobx";
export function makeIterableIterator<T>(iterator: Iterator<T>): IterableIterator<T> {
(iterator as IterableIterator<T>)[Symbol.iterator] = () => iterator as IterableIterator<T>;
+2 -1
View File
@@ -3,7 +3,8 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import semver, { coerce, SemVer } from "semver";
import type { SemVer } from "semver";
import semver, { coerce } from "semver";
import * as iter from "./iter";
import type { RawHelmChart } from "../k8s-api/endpoints/helm-charts.api";
import logger from "../logger";
+2 -1
View File
@@ -5,7 +5,8 @@
// Helper for working with tarball files (.tar, .tgz)
// Docs: https://github.com/npm/node-tar
import tar, { ExtractOptions, FileStat } from "tar";
import type { ExtractOptions, FileStat } from "tar";
import tar from "tar";
import path from "path";
export interface ReadFileFromTarOpts {