build: Only enable no-argument-spread lint rule in node packages (#18378)

This commit is contained in:
Elias Meire
2025-08-18 13:48:46 +02:00
committed by GitHub
parent f769d5588e
commit ba5ada24c2
7 changed files with 11 additions and 10 deletions

View File

@@ -586,7 +586,7 @@ function getParentTypes(name: string): string[] {
const types: string[] = [];
for (const typeName of type.extends) {
types.push(typeName);
types.push.apply(types, getParentTypes(typeName)); // eslint-disable-line prefer-spread
types.push.apply(types, getParentTypes(typeName));
}
return types;