From dd13b95014e3641b34964399f0d43862543970b4 Mon Sep 17 00:00:00 2001 From: Jeromy Cannon Date: Mon, 23 Dec 2024 20:28:06 +0000 Subject: [PATCH] fixed eslint errors from `npm run check` Signed-off-by: Jeromy Cannon --- src/core/lease/lease_manager.ts | 2 +- src/index.ts | 3 +-- test/setup.ts | 1 - test/unit/commands/base.test.ts | 4 +--- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/core/lease/lease_manager.ts b/src/core/lease/lease_manager.ts index 7d941035c..f271973e6 100644 --- a/src/core/lease/lease_manager.ts +++ b/src/core/lease/lease_manager.ts @@ -18,7 +18,7 @@ import {Flags as flags} from '../../commands/flags.js'; import {ConfigManager} from '../config_manager.js'; import {K8} from '../k8.js'; import {SoloLogger} from '../logging.js'; -import {type Lease, LeaseRenewalService} from './lease.js'; +import type {Lease, LeaseRenewalService} from './lease.js'; import {IntervalLease} from './interval_lease.js'; import {LeaseHolder} from './lease_holder.js'; import {LeaseAcquisitionError} from './lease_errors.js'; diff --git a/src/index.ts b/src/index.ts index 4fcdd1dc2..68d2130ac 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,13 +19,12 @@ import yargs from 'yargs'; import {hideBin} from 'yargs/helpers'; import 'dotenv/config'; import path from 'path'; -import 'reflect-metadata'; import './core/container_init.js'; import {ListrLogger} from 'listr2'; import {Flags as flags} from './commands/flags.js'; import * as commands from './commands/index.js'; -import {HelmDependencyManager, DependencyManager} from './core/dependency_managers/index.js'; +import {DependencyManager} from './core/dependency_managers/index.js'; import * as constants from './core/constants.js'; import {PackageDownloader} from './core/package_downloader.js'; import {Helm} from './core/helm.js'; diff --git a/test/setup.ts b/test/setup.ts index 32e6dbded..582008a26 100644 --- a/test/setup.ts +++ b/test/setup.ts @@ -17,7 +17,6 @@ import * as chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import sinonChai from 'sinon-chai'; -import 'reflect-metadata'; import {resetTestContainer} from './test_container.js'; resetTestContainer(); diff --git a/test/unit/commands/base.test.ts b/test/unit/commands/base.test.ts index d25bd6adf..3da30e8a3 100644 --- a/test/unit/commands/base.test.ts +++ b/test/unit/commands/base.test.ts @@ -23,15 +23,13 @@ import {ConfigManager} from '../../../src/core/config_manager.js'; import {LocalConfig} from '../../../src/core/config/local_config.js'; import {RemoteConfigManager} from '../../../src/core/config/remote/remote_config_manager.js'; import {K8} from '../../../src/core/k8.js'; -import * as logging from '../../../src/core/logging.js'; import {BaseCommand} from '../../../src/commands/base.js'; import {Flags as flags} from '../../../src/commands/flags.js'; import sinon from 'sinon'; import {container} from 'tsyringe-neo'; import {SoloLogger} from '../../../src/core/logging.js'; -import {resetTestContainer} from '../../test_container.js'; -describe.only('BaseCommand', () => { +describe('BaseCommand', () => { let helm: Helm; let chartManager: ChartManager; let configManager: ConfigManager;