Skip to content

Commit

Permalink
Merge pull request #1348 from standard/unbound-method
Browse files Browse the repository at this point in the history
feat: @typescript-eslint/unbound-method
  • Loading branch information
rostislav-simonik authored Nov 18, 2023
2 parents 89734cf + 2ec6d24 commit c421569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ test('export', (t): void => {
allowAny: false
}],
'@typescript-eslint/triple-slash-reference': ['error', { lib: 'never', path: 'never', types: 'never' }],
'@typescript-eslint/type-annotation-spacing': 'error'
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: false }]
}
}

Expand Down Expand Up @@ -486,7 +487,6 @@ test('all plugin rules are considered', (t) => {
'sort-type-union-intersection-members',
'switch-exhaustiveness-check',
'typedef',
'unbound-method',
'unified-signatures'
]
const assertNotInOurRules = (rule: string): void => {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ const config: Linter.Config = {
}],
'@typescript-eslint/triple-slash-reference': ['error', { lib: 'never', path: 'never', types: 'never' }],
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: false }],
'no-void': ['error', { allowAsStatement: true }]
}
}
Expand Down

0 comments on commit c421569

Please sign in to comment.