From 3df0dc578eea878da960166b10b9b5f613f2aa7c Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Fri, 13 Jun 2025 16:32:47 +1200 Subject: [PATCH] feat(unbound-method): mark `docs.recommended` and `docs.requiresTypeChecking` as deprecated --- src/rules/unbound-method.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rules/unbound-method.ts b/src/rules/unbound-method.ts index 3a27a9d98..862c66df1 100644 --- a/src/rules/unbound-method.ts +++ b/src/rules/unbound-method.ts @@ -51,7 +51,9 @@ const DEFAULT_MESSAGE = 'This rule requires `@typescript-eslint/eslint-plugin`'; // todo: remove these along with the actual runtime properties below in new major declare module '@typescript-eslint/utils/ts-eslint' { interface RuleMetaDataDocs { + /** @deprecated */ requiresTypeChecking?: boolean; + /** @deprecated */ recommended?: unknown; } } @@ -71,9 +73,11 @@ export default createRule({ docs: { description: 'Enforce unbound methods are called with their expected scope', + /** @deprecated */ requiresTypeChecking: true, ...baseRule?.meta.docs, // mark this as not recommended + /** @deprecated */ recommended: undefined, }, },