Skip to content

Commit d28a5e2

Browse files
committed
refactor(babel7): SpreadProperty is deprecated and removed from Babel7
and does not appear in direct child of Object Literal
1 parent b887dc3 commit d28a5e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/to-be-skipped.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ function isLeftHandSideOfAssignment(types, nodePath) {
4141
}
4242

4343
function isChildOfObjectLiteral (types, parentNode) {
44-
return types.isObjectProperty(parentNode) ||
45-
types.isObjectMethod(parentNode) ||
46-
types.isSpreadProperty(parentNode);
44+
return types.isObjectProperty(parentNode) || types.isObjectMethod(parentNode);
4745
}
4846

4947
function isObjectLiteralKey (types, parentNode, currentKey) {

0 commit comments

Comments
 (0)