Skip to content

Commit 58825e4

Browse files
committed
feat: fix invalid test
1 parent afeabdd commit 58825e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rules/require-default-props.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ module.exports = {
144144
}
145145
case 'ObjectPattern': {
146146
props.properties.filter((prop) => {
147-
if (prop.type === 'RestElement') {
147+
if (prop.type === 'RestElement'
148+
|| prop.type === 'ExperimentalRestProperty'
149+
) {
148150
return false;
149151
}
150152
const propType = propTypes[prop.key.name];

0 commit comments

Comments
 (0)