Skip to content

Commit 9aa8c00

Browse files
akulsr0ljharb
andauthored
Update tests/lib/rules/no-unused-prop-types.js
Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent eba36a0 commit 9aa8c00

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6690,21 +6690,20 @@ ruleTester.run('no-unused-prop-types', rule, {
66906690
{ message: '\'propTypes\' PropType is defined but prop is never used' },
66916691
],
66926692
},
6693-
66946693
{
66956694
code: `
6696-
import React from "react";
6695+
import React from "react";
66976696
6698-
type props = {
6699-
foo: string;
6700-
bar: string;
6701-
};
6697+
type props = {
6698+
foo: string;
6699+
bar: string;
6700+
};
67026701
6703-
const Demo: React.FC<props> = ({ foo }) => {
6704-
return <div {...{}}>{foo}</div>;
6705-
};
6702+
const Demo: React.FC<props> = ({ foo }) => {
6703+
return <div {...{}}>{foo}</div>;
6704+
};
67066705
6707-
export default Demo;
6706+
export default Demo;
67086707
`,
67096708
features: ['ts'],
67106709
errors: [

0 commit comments

Comments
 (0)