Skip to content

Commit 78ec577

Browse files
committed
test(no-unused-prop-types): Add import test with Union
1 parent 115e4b9 commit 78ec577

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/lib/rules/no-unused-prop-types.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,17 @@ ruleTester.run('no-unused-prop-types', rule, {
11191119
'}'
11201120
].join('\n'),
11211121
parser: 'babel-eslint'
1122+
}, {
1123+
code: [
1124+
'import type { FieldProps } from "redux-form"',
1125+
'',
1126+
'type Props = {',
1127+
'label: string,',
1128+
' type: string,',
1129+
' options: Array<SelectOption>',
1130+
'} & FieldProps'
1131+
].join('\n'),
1132+
parser: 'babel-eslint'
11221133
}, {
11231134
code: [
11241135
'Card.propTypes = {',

0 commit comments

Comments
 (0)