diff --git a/lib/rules/boolean-prop-naming.js b/lib/rules/boolean-prop-naming.js index 9482d87f09..cc0dd2b019 100644 --- a/lib/rules/boolean-prop-naming.js +++ b/lib/rules/boolean-prop-naming.js @@ -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) {