Skip to content

Commit 12ff9d7

Browse files
committed
prettier
1 parent 7850bf3 commit 12ff9d7

File tree

1 file changed

+3
-1
lines changed
  • src/plugins/transform-jsx-spread

1 file changed

+3
-1
lines changed

src/plugins/transform-jsx-spread/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export default ({ types: t }) => {
8585
visitor: {
8686
JSXOpeningElement(path, state) {
8787
const useSpread = state.opts.useSpread === true;
88-
const hasSpread = path.node.attributes.some(attr => t.isJSXSpreadAttribute(attr));
88+
const hasSpread = path.node.attributes.some(attr =>
89+
t.isJSXSpreadAttribute(attr)
90+
);
8991

9092
// ignore JSX Elements without spread or with lone spread:
9193
if (!hasSpread || path.node.attributes.length === 1) return;

0 commit comments

Comments
 (0)