From 0d2560ea537e1df04278ee4c6b2bf40e4ae55d10 Mon Sep 17 00:00:00 2001 From: azlam-abdulsalam Date: Fri, 22 Mar 2024 13:59:16 +1100 Subject: [PATCH] fix(lint): fix lint issues --- packages/sfp-cli/src/commands/impact/package.ts | 2 -- .../sfp-cli/src/core/display/ImpactedPackagesDisplayer.ts | 2 +- packages/sfp-cli/src/impl/validate/ValidateImpl.ts | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/sfp-cli/src/commands/impact/package.ts b/packages/sfp-cli/src/commands/impact/package.ts index bd3cb9453..6d8d3f504 100644 --- a/packages/sfp-cli/src/commands/impact/package.ts +++ b/packages/sfp-cli/src/commands/impact/package.ts @@ -4,9 +4,7 @@ import { Stage } from '../../impl/Stage'; import SFPLogger, { COLOR_KEY_MESSAGE, ConsoleLogger } from '@flxbl-io/sfp-logger'; import { Flags } from '@oclif/core'; import { loglevel } from '../../flags/sfdxflags'; -import { ZERO_BORDER_TABLE } from '../../ui/TableConstants'; import ImpactedPackageResolver, { ImpactedPackageProps } from '../../impl/impact/ImpactedPackagesResolver'; -const Table = require('cli-table'); import path from 'path'; import * as fs from 'fs-extra'; import ImpactedPackagesDisplayer from '../../core/display/ImpactedPackagesDisplayer'; diff --git a/packages/sfp-cli/src/core/display/ImpactedPackagesDisplayer.ts b/packages/sfp-cli/src/core/display/ImpactedPackagesDisplayer.ts index dfd78256f..30bb91fee 100644 --- a/packages/sfp-cli/src/core/display/ImpactedPackagesDisplayer.ts +++ b/packages/sfp-cli/src/core/display/ImpactedPackagesDisplayer.ts @@ -1,4 +1,4 @@ -import SFPLogger, { COLOR_KEY_MESSAGE, Logger, LoggerLevel } from '@flxbl-io/sfp-logger'; +import SFPLogger, { Logger, LoggerLevel } from '@flxbl-io/sfp-logger'; import { ZERO_BORDER_TABLE } from './TableConstants'; const Table = require('cli-table'); diff --git a/packages/sfp-cli/src/impl/validate/ValidateImpl.ts b/packages/sfp-cli/src/impl/validate/ValidateImpl.ts index 558ed74d5..c9eedfd3c 100644 --- a/packages/sfp-cli/src/impl/validate/ValidateImpl.ts +++ b/packages/sfp-cli/src/impl/validate/ValidateImpl.ts @@ -2,7 +2,7 @@ import BuildImpl, { BuildProps } from '../parallelBuilder/BuildImpl'; import DeployImpl, { DeploymentMode, DeployProps, DeploymentResult } from '../deploy/DeployImpl'; import ArtifactGenerator from '../../core/artifacts/generators/ArtifactGenerator'; import { Stage } from '../Stage'; -import SFPLogger, { COLOR_KEY_VALUE, COLOR_TRACE, ConsoleLogger, Logger, LoggerLevel } from '@flxbl-io/sfp-logger'; +import SFPLogger, { COLOR_KEY_VALUE, ConsoleLogger, Logger, LoggerLevel } from '@flxbl-io/sfp-logger'; import { PackageInstallationResult, PackageInstallationStatus, @@ -138,7 +138,7 @@ export default class ValidateImpl implements PostDeployHook, PreDeployHook { ImpactedPackagesDisplayer.displayImpactedPackages(this.impactedPackagesAsPerBranch, this.logger); } - let builtSfpPackages = await this.buildImpactedPackages(packagesInstalledInOrgMappedToCommits); + await this.buildImpactedPackages(packagesInstalledInOrgMappedToCommits); deploymentResult = await this.deployPackages(targetUserName); if (deploymentResult.failed.length > 0 || deploymentResult.error)