From ad681aa65e1a3afbf328a2a8dcc7dc1d390fc0a8 Mon Sep 17 00:00:00 2001 From: Alex <132826015+gratisvictory@users.noreply.github.com> Date: Sun, 4 May 2025 20:30:40 +0400 Subject: [PATCH] fix: mark no-throw-statements rule as requiring type checking Previously, the rule `functional/no-throw-statements` did not declare `requiresTypeChecking: true`, which caused runtime errors when using it with `@typescript-eslint` without a `parserOptions.project` set. This change adds `requiresTypeChecking: true` to the rule's meta to align with its actual type-dependent behavior. --- src/rules/no-throw-statements.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/no-throw-statements.ts b/src/rules/no-throw-statements.ts index b6358a57d..e8cde047a 100644 --- a/src/rules/no-throw-statements.ts +++ b/src/rules/no-throw-statements.ts @@ -66,7 +66,7 @@ const meta: NamedCreateRuleCustomMeta = description: "Disallow throwing exceptions.", recommended: "recommended", recommendedSeverity: "error", - requiresTypeChecking: false, + requiresTypeChecking: true, }, messages: errorMessages, schema,