Enforce member-delimiter-style using eslint (#4870)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-02-16 14:43:03 -05:00
1 parent 1c7641708e
commit 600bd659f6
158 files changed
+304 -294

No files matched your search

@@ -32,7 +32,7 @@ interface Dependencies {
isCompatibleExtension: (manifest: LensExtensionManifest) => boolean;
installExtension: (name: string) => Promise<void>;
installExtensions: (packageJsonPath: string, packagesJson: PackageJson) => Promise<void>
installExtensions: (packageJsonPath: string, packagesJson: PackageJson) => Promise<void>;
extensionPackageRootDirectory: string;
}
@@ -13,7 +13,7 @@ import type { PackageJson } from "type-fest";
const logModule = "[EXTENSION-INSTALLER]";
interface Dependencies {
extensionPackageRootDirectory: string
extensionPackageRootDirectory: string;
}
/**
@@ -17,7 +17,7 @@ interface FSProvisionModel {
}
interface Dependencies {
directoryForExtensionData: string
directoryForExtensionData: string;
}
export class FileSystemProvisionerStore extends BaseStore<FSProvisionModel> {
@@ -23,13 +23,13 @@ import { requestExtensionLoaderInitialState } from "../../renderer/ipc";
const logModule = "[EXTENSIONS-LOADER]";
interface Dependencies {
updateExtensionsState: (extensionsState: Record<LensExtensionId, LensExtensionState>) => void
createExtensionInstance: (ExtensionClass: LensExtensionConstructor, extension: InstalledExtension) => LensExtension,
updateExtensionsState: (extensionsState: Record<LensExtensionId, LensExtensionState>) => void;
createExtensionInstance: (ExtensionClass: LensExtensionConstructor, extension: InstalledExtension) => LensExtension;
}
export interface ExtensionLoading {
isBundled: boolean,
loaded: Promise<void>
isBundled: boolean;
loaded: Promise<void>;
}
/**
@@ -36,7 +36,7 @@ export class ExtensionsStore extends BaseStore<LensExtensionsStoreModel> {
protected state = observable.map<LensExtensionId, LensExtensionState>();
isEnabled({ id, isBundled }: { id: string, isBundled: boolean }): boolean {
isEnabled({ id, isBundled }: { id: string; isBundled: boolean }): boolean {
// By default false, so that copied extensions are disabled by default.
// If user installs the extension from the UI, the Extensions component will specifically enable it.
return isBundled || Boolean(this.state.get(id)?.enabled);
@@ -10,5 +10,5 @@ import type { FileSystemProvisionerStore } from "./extension-loader/create-exten
export const setLensExtensionDependencies = Symbol("set-lens-extension-dependencies");
export interface LensExtensionDependencies {
fileSystemProvisionerStore: FileSystemProvisionerStore
fileSystemProvisionerStore: FileSystemProvisionerStore;
}
+1 -1
View File
@@ -38,7 +38,7 @@ export interface PageParams<V = any> {
export interface PageComponentProps<P extends PageParams = {}> {
params?: {
[N in keyof P]: PageParam<P[N]>;
}
};
}
export interface RegisteredPage {