Skip to content

Commit

Permalink
fix: spread operator to concat
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-bandi committed Mar 8, 2024
1 parent f45e2c7 commit a52e7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/boolean-prop-naming.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ module.exports = {
propType = objectTypeAnnotations.get(annotation.typeName.name);
} else if (annotation.type === 'TSIntersectionType') {
propType = annotation.types.map((type) => objectTypeAnnotations.get(type.typeName.name))
.reduce((prev, cur) => [...prev, ...cur], []);
.reduce((prev, cur) => prev.concat(cur), []);
}

if (propType) {
Expand Down

0 comments on commit a52e7eb

Please sign in to comment.