From 3695f9fbb0f6c04d7c06d2dbb41f804e2cf51758 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Mon, 21 Nov 2022 10:50:24 +0100 Subject: [PATCH] refactor: remove outdated unused tslint artifacts --- src/api.ts | 2 -- src/cli.ts | 2 -- src/types.ts | 2 -- tslint.json | 3 --- 4 files changed, 9 deletions(-) delete mode 100644 tslint.json diff --git a/src/api.ts b/src/api.ts index fae82b64..b1cbf530 100644 --- a/src/api.ts +++ b/src/api.ts @@ -533,7 +533,6 @@ export class Api { Logger.warn(`GitLab was not responding. Waiting ${seconds}s and retrying...`); - // tslint:disable-next-line:no-magic-numbers await sleep(seconds * 1000); continue; @@ -567,7 +566,6 @@ export class Api { */ public async protectBranch(projectId: number, branch: string): Promise { return this.makeGitLabAPIRequest( - /* tslint:disable-next-line:max-line-length */ `projects/${projectId}/repository/branches/${branch}/protect?developers_can_push=false&developers_can_merge=false`, { method: 'PUT', diff --git a/src/cli.ts b/src/cli.ts index 2880d4ba..1dc9f5b1 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -81,7 +81,6 @@ commander.command('batch-process ').action(async (projectId, tries: 10, }); } - // tslint:disable-next-line:no-console Logger.info(`Processed issue #${issue.iid} of project '${projectId}': ${issue.title}`); }); @@ -110,7 +109,6 @@ commander let index = 0; - // tslint:disable-next-line:no-magic-numbers await asyncPool(2, issues, async issue => { // get notes of old issue const notes = await api.getNotes(projectId, issue); diff --git a/src/types.ts b/src/types.ts index 5e722580..d9316e79 100644 --- a/src/types.ts +++ b/src/types.ts @@ -13,8 +13,6 @@ * this program. If not, see . */ -// tslint:disable:completed-docs - /** * Scope of membership */ diff --git a/tslint.json b/tslint.json deleted file mode 100644 index f125abb0..00000000 --- a/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "./node_modules/@openstapps/configuration/tslint.json" -}