Skip to content

Commit 30440ef

Browse files
authored
feat(unbound-method): mark docs.recommended and docs.requiresTypeChecking as deprecated (#1762)
1 parent 51d39cc commit 30440ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rules/unbound-method.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ const DEFAULT_MESSAGE = 'This rule requires `@typescript-eslint/eslint-plugin`';
5151
// todo: remove these along with the actual runtime properties below in new major
5252
declare module '@typescript-eslint/utils/ts-eslint' {
5353
interface RuleMetaDataDocs {
54+
/** @deprecated */
5455
requiresTypeChecking?: boolean;
56+
/** @deprecated */
5557
recommended?: unknown;
5658
}
5759
}
@@ -71,9 +73,11 @@ export default createRule<Options, MessageIds>({
7173
docs: {
7274
description:
7375
'Enforce unbound methods are called with their expected scope',
76+
/** @deprecated */
7477
requiresTypeChecking: true,
7578
...baseRule?.meta.docs,
7679
// mark this as not recommended
80+
/** @deprecated */
7781
recommended: undefined,
7882
},
7983
},

0 commit comments

Comments
 (0)