We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c248d commit f2d8729Copy full SHA for f2d8729
lib/rules/sort-prop-types.js
@@ -84,7 +84,7 @@ module.exports = {
84
}
85
86
declarations.reduce((prev, curr, idx, decls) => {
87
- if (/SpreadProperty$/.test(curr.type)) {
+ if (curr.type === 'ExperimentalSpreadProperty' || curr.type === 'SpreadElement') {
88
return decls[idx + 1];
89
90
0 commit comments