Disallow and suppress misused spread operator. (#23294)

This commit is contained in:
Christian Gunderman
2026-03-21 05:21:53 +00:00
committed by GitHub
parent e7b6326cfa
commit 8f391585ab
25 changed files with 59 additions and 0 deletions
+1
View File
@@ -194,6 +194,7 @@ export class KeyBinding {
const key = remains;
// eslint-disable-next-line @typescript-eslint/no-misused-spread
const isSingleChar = [...key].length === 1;
if (!isSingleChar && !KeyBinding.VALID_LONG_KEYS.has(key.toLowerCase())) {