Skip to content

Commit 034ac33

Browse files
committed
feature: @putout/plugin-remove-useless-spread: drop support of recast
1 parent c110a9b commit 034ac33

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

packages/plugin-remove-useless-spread/lib/object/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@ module.exports.filter = (path) => {
1313
const {node, parentPath} = path;
1414
const [first] = node.properties;
1515

16-
const {
17-
comments,
18-
trailingComments,
19-
} = first;
20-
21-
if (comments?.length)
22-
return false;
16+
const {trailingComments} = first;
2317

2418
if (trailingComments?.length)
2519
return false;

packages/plugin-remove-useless-spread/lib/object/recast.spec.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)