10000 chore: enable no-useless-call (#9537) · abrahamguo/typescript-eslint@8258dae · GitHub
[go: up one dir, main page]

Skip to content

Commit 8258dae

Browse files
authored
chore: enable no-useless-call (typescript-eslint#9537)
no-useless-call

2 files changed

+2
-1
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export default tseslint.config(
206206
'error',
207207
{ commentPattern: '.*intentional fallthrough.*' },
208208
],
209+
'no-useless-call': 'error',
209210
'no-useless-computed-key': 'error',
210211
'no-void': ['error', { allowAsStatement: true }],
211212
'one-var': ['error', 'never'],

packages/website/src/components/lib/debounce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function debounce<X extends unknown[]>(
99
clearTimeout(timeout);
1010
timeout = setTimeout(() => {
1111
timeout = undefined;
12-
func.call(null, ...args);
12+
func(...args);
1313
}, wait);
1414
};
1515
}

0 commit comments

Comments
 (0)
0