Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/rules/unbound-method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -71,9 +73,11 @@ export default createRule<Options, MessageIds>({
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,
},
},
Expand Down