From 166b97d5217c568c510242f86602a312253f4e3b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 07:42:10 +0000 Subject: [PATCH] fix: remove unused TSESTree import in require-fs-sync-try-catch rule Resolves CodeQL alert #645 (js/unused-local-variable). TSESTree was imported but never referenced in the rule implementation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eslint-factory/src/rules/require-fs-sync-try-catch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint-factory/src/rules/require-fs-sync-try-catch.ts b/eslint-factory/src/rules/require-fs-sync-try-catch.ts index c0d4bd9773f..26fcb6372a1 100644 --- a/eslint-factory/src/rules/require-fs-sync-try-catch.ts +++ b/eslint-factory/src/rules/require-fs-sync-try-catch.ts @@ -1,4 +1,4 @@ -import { ESLintUtils, TSESTree } from "@typescript-eslint/utils"; +import { ESLintUtils } from "@typescript-eslint/utils"; import { buildTryCatchSuggestion, createFsSyncMethodResolver, findEnclosingStatement, isInsideTryBlock } from "./try-catch-rule-utils"; const createRule = ESLintUtils.RuleCreator(name => `https://github.com/github/gh-aw/tree/main/eslint-factory#${name}`);