Skip to content

Commit a52e7eb

Browse files
fix: spread operator to concat
1 parent f45e2c7 commit a52e7eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/boolean-prop-naming.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ module.exports = {
386386
propType = objectTypeAnnotations.get(annotation.typeName.name);
387387
} else if (annotation.type === 'TSIntersectionType') {
388388
propType = annotation.types.map((type) => objectTypeAnnotations.get(type.typeName.name))
389-
.reduce((prev, cur) => [...prev, ...cur], []);
389+
.reduce((prev, cur) => prev.concat(cur), []);
390390
}
391391

392392
if (propType) {

0 commit comments

Comments
 (0)