From d822c5129819447ccfc1961934c6f7f01339482d Mon Sep 17 00:00:00 2001 From: vilicvane Date: Sat, 4 Nov 2023 20:19:31 +0800 Subject: [PATCH] Fix lint --- packages/cli/src/program/commands/default.ts | 1 - packages/cli/src/program/main.ts | 1 - packages/core/src/library/space/@git.ts | 1 - packages/core/src/library/space/space-logger.ts | 1 - 4 files changed, 4 deletions(-) diff --git a/packages/cli/src/program/commands/default.ts b/packages/cli/src/program/commands/default.ts index 7371981..310f9a3 100644 --- a/packages/cli/src/program/commands/default.ts +++ b/packages/cli/src/program/commands/default.ts @@ -27,7 +27,6 @@ export default class DefaultCommand extends Command { @metadata async execute(options: DefaultCommandOptions): Promise { if (options.version) { - // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires return require('../../../package').version; } diff --git a/packages/cli/src/program/main.ts b/packages/cli/src/program/main.ts index 234f676..95065cb 100644 --- a/packages/cli/src/program/main.ts +++ b/packages/cli/src/program/main.ts @@ -16,5 +16,4 @@ const cli = new CLI( const shim = new Shim(cli); -// eslint-disable-next-line @typescript-eslint/no-floating-promises shim.execute(process.argv); diff --git a/packages/core/src/library/space/@git.ts b/packages/core/src/library/space/@git.ts index 24db2cd..ab73fd7 100644 --- a/packages/core/src/library/space/@git.ts +++ b/packages/core/src/library/space/@git.ts @@ -180,7 +180,6 @@ export class ProjectGit extends Git { const diffRenameRegex = /^rename from (.+)\r?\n^rename to (.+)/gm; let diffRenameGroups: RegExpExecArray | null; - // eslint-disable-next-line no-cond-assign while ((diffRenameGroups = diffRenameRegex.exec(diff))) { renames.push({ from: diffRenameGroups[1], diff --git a/packages/core/src/library/space/space-logger.ts b/packages/core/src/library/space/space-logger.ts index 011fb3d..e956764 100644 --- a/packages/core/src/library/space/space-logger.ts +++ b/packages/core/src/library/space/space-logger.ts @@ -1,4 +1,3 @@ -// eslint-disable-next-line @typescript-eslint/consistent-type-definitions export type SpaceLoggerEvent = | { type: 'loaded-composable-module';