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, }, },