Skip to content

Commit ae88563

Browse files
committed
test(resolveSuperParameterPropsType): add regression test
1 parent b0971ab commit ae88563

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/lib/rules/prop-types.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,20 @@ ruleTester.run('prop-types', rule, {
18051805
}
18061806
}
18071807
`,
1808+
settings: {react: {flowVersion: '0.52'}},
1809+
parser: 'babel-eslint'
1810+
}, {
1811+
code: `
1812+
type Props = {
1813+
foo: string,
1814+
};
1815+
1816+
class Bar extends React.Component<Props> {
1817+
render() {
1818+
return <div>{this.props.foo}</div>
1819+
}
1820+
}
1821+
`,
18081822
settings: {react: {flowVersion: '0.53'}},
18091823
parser: 'babel-eslint'
18101824
}, {

0 commit comments

Comments
 (0)