Skip to content

Commit f62fde6

Browse files
authored
feat: Add a test case to require-valid-default-prop (#2637)
1 parent 4baf3ab commit f62fde6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/lib/rules/require-valid-default-prop.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ ruleTester.run('require-valid-default-prop', rule, {
108108
foo: { type: String, default () { return Foo } },
109109
foo: { type: Number, default () { return Foo } },
110110
foo: { type: Object, default () { return Foo } },
111+
foo: { type: Object, default: null },
111112
}
112113
})`,
113114
languageOptions

0 commit comments

Comments
 (0)