Skip to content

Commit f2d8729

Browse files
committed
Add SpreadElement support to sort-prop-types
1 parent 29c248d commit f2d8729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/sort-prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = {
8484
}
8585

8686
declarations.reduce((prev, curr, idx, decls) => {
87-
if (/SpreadProperty$/.test(curr.type)) {
87+
if (curr.type === 'ExperimentalSpreadProperty' || curr.type === 'SpreadElement') {
8888
return decls[idx + 1];
8989
}
9090

0 commit comments

Comments
 (0)