From fcfd6e33b0ff4330aea04631740a836ca8fe185e Mon Sep 17 00:00:00 2001 From: rhysd Date: Mon, 5 Aug 2024 23:45:56 +0900 Subject: [PATCH] fix warnings from eslint v9 --- eslint.config.mjs | 1 + src/vim.ts | 2 +- test/neovim.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 3cdea6c..a05411a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -89,6 +89,7 @@ export default ts.config( '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unsafe-call': 'off', + '@typescript-eslint/no-require-imports': 'off', 'mocha/no-setup-in-describe': 'off', 'mocha/no-hooks-for-single-case': 'off', 'mocha/max-top-level-suites': 'off', diff --git a/src/vim.ts b/src/vim.ts index f58010a..2f5b05a 100644 --- a/src/vim.ts +++ b/src/vim.ts @@ -44,7 +44,7 @@ async function getXcode11DevDir(): Promise { try { await fs.access(dir); return dir; - } catch (e) { + } catch (/* eslint-disable-line @typescript-eslint/no-unused-vars */ e) { return null; } } diff --git a/test/neovim.ts b/test/neovim.ts index 4de1ada..cf984c7 100644 --- a/test/neovim.ts +++ b/test/neovim.ts @@ -1,7 +1,7 @@ import { strict as A } from 'assert'; import * as path from 'path'; import mock = require('mock-require'); -import { downloadNeovim, downloadStableNeovim, buildNightlyNeovim, assetDirName } from '../src/neovim'; +import { downloadNeovim, type downloadStableNeovim, type buildNightlyNeovim, assetDirName } from '../src/neovim'; import { mockFetch, ExecStub, mockExec } from './helper'; function reRequire(): typeof import('../src/neovim') {