Skip to content

Commit 2ec6d24

Browse files
feat: @typescript-eslint/unbound-method
BREAKING CHANGE: add rule @typescript-eslint/unbound-method Related to #1327 Co-authored-by: Rostislav Simonik <[email protected]>
1 parent 89734cf commit 2ec6d24

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ test('export', (t): void => {
276276
allowAny: false
277277
}],
278278
'@typescript-eslint/triple-slash-reference': ['error', { lib: 'never', path: 'never', types: 'never' }],
279-
'@typescript-eslint/type-annotation-spacing': 'error'
279+
'@typescript-eslint/type-annotation-spacing': 'error',
280+
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: false }]
280281
}
281282
}
282283

@@ -486,7 +487,6 @@ test('all plugin rules are considered', (t) => {
486487
'sort-type-union-intersection-members',
487488
'switch-exhaustiveness-check',
488489
'typedef',
489-
'unbound-method',
490490
'unified-signatures'
491491
]
492492
const assertNotInOurRules = (rule: string): void => {

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ const config: Linter.Config = {
223223
}],
224224
'@typescript-eslint/triple-slash-reference': ['error', { lib: 'never', path: 'never', types: 'never' }],
225225
'@typescript-eslint/type-annotation-spacing': 'error',
226+
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: false }],
226227
'no-void': ['error', { allowAsStatement: true }]
227228
}
228229
}

0 commit comments

Comments
 (0)