From 307d90f9c73cbaad00bb3160cb08f5ea713085a3 Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Wed, 7 May 2025 11:58:37 +0000 Subject: [PATCH] fix(eslint): resolve @typescript-eslint/no-unused-vars errors --- __fixtures__/core.ts | 2 +- __tests__/main.test.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/__fixtures__/core.ts b/__fixtures__/core.ts index 6f57cd6..b0e4d9d 100644 --- a/__fixtures__/core.ts +++ b/__fixtures__/core.ts @@ -6,7 +6,7 @@ export const error = vi.fn() export const info = vi.fn() export const getInput = vi .fn() - .mockImplementation((name, options) => { + .mockImplementation((name) => { const key = `INPUT_${name.replace(/ /g, '_').toUpperCase()}` return process.env[key] || '' }) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index cb2075c..f3f0cf9 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -53,7 +53,7 @@ describe('run: pr', () => { path.join(__dirname, 'testdata/audit/success.txt') ), status: 0, - run: (auditLevel: string): Promise => { + run: (): Promise => { return Promise.resolve(void 0) }, foundVulnerability: (): boolean => { @@ -78,7 +78,7 @@ describe('run: pr', () => { path.join(__dirname, 'testdata/audit/error.txt') ), status: 1, - run: (auditLevel: string): Promise => { + run: (): Promise => { return Promise.resolve(void 0) }, foundVulnerability: (): boolean => { @@ -105,7 +105,7 @@ describe('run: pr', () => { path.join(__dirname, 'testdata/audit/error.txt') ), status: 1, - run: (auditLevel: string): Promise => { + run: (): Promise => { return Promise.resolve(void 0) }, foundVulnerability: (): boolean => { @@ -147,7 +147,7 @@ describe('run: issue', () => { path.join(__dirname, 'testdata/audit/error.txt') ), status: 1, - run: (auditLevel: string): Promise => { + run: (): Promise => { return Promise.resolve(void 0) }, foundVulnerability: (): boolean => {