Skip to content

Commit eb47d02

Browse files
committed
cleanup code
1 parent b9d2d6f commit eb47d02

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export default defineConfig([
4444
"error",
4545
{
4646
argsIgnorePattern: "^_.*",
47+
varsIgnorePattern: "^_",
48+
caughtErrorsIgnorePattern: "^_",
4749
},
4850
],
4951

src/Installer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export async function loadParser(
4040
let language: Language;
4141
try {
4242
language = ((await import(bindingsDir)) as { default: Language }).default;
43-
} catch (error) {
43+
} catch (_) {
4444
// TODO(1/11/25): Always use import and remove this backup
45-
// eslint-disable-next-line @typescript-eslint/no-var-requires
45+
// eslint-disable-next-line @typescript-eslint/no-require-imports
4646
language = require(bindingsDir) as Language;
4747
}
4848

src/examples/suite/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as path from "path";
22
import Mocha from "mocha";
3-
import { glob } from "glob"; // ✅ named import for v10+
3+
import { glob } from "glob";
44

55
export async function run(): Promise<void> {
66
let example = process.env.EXAMPLE;

0 commit comments

Comments
 (0)