Skip to content

Commit 945651c

Browse files
committed
feat(unbound-method): remove docs.recommended and docs.requiresTypeChecking properties
BREAKING CHANGE: removed `docs.recommend` and `docs.requiresTypeChecking` from `unbound-method`
1 parent 5ca65d3 commit 945651c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/rules/unbound-method.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ export type MessageIds = 'unbound' | 'unboundWithoutThisAnnotation';
4848

4949
const DEFAULT_MESSAGE = 'This rule requires `@typescript-eslint/eslint-plugin`';
5050

51-
// todo: remove these along with the actual runtime properties below in new major
52-
declare module '@typescript-eslint/utils/ts-eslint' {
53-
interface RuleMetaDataDocs {
54-
/** @deprecated */
55-
requiresTypeChecking?: boolean;
56-
/** @deprecated */
57-
recommended?: unknown;
58-
}
59-
}
60-
6151
export default createRule<Options, MessageIds>({
6252
defaultOptions: [{ ignoreStatic: false }],
6353
...baseRule,
@@ -73,12 +63,7 @@ export default createRule<Options, MessageIds>({
7363
docs: {
7464
description:
7565
'Enforce unbound methods are called with their expected scope',
76-
/** @deprecated */
77-
requiresTypeChecking: true,
7866
...baseRule?.meta.docs,
79-
// mark this as not recommended
80-
/** @deprecated */
81-
recommended: undefined,
8267
},
8368
},
8469
create(context) {

0 commit comments

Comments
 (0)