Skip to content

Commit 8cde4a1

Browse files
Diana SuvorovaDiana Suvorova
authored andcommitted
more cleanup
1 parent a8f2fdb commit 8cde4a1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,16 +1319,15 @@ ruleTester.run('no-unused-prop-types', rule, {
13191319
code: [
13201320
'const PagingBlock = function(props) {',
13211321
' return (',
1322-
' <SomeComponent {...props} />',
1322+
' <SomeChild {...props} />',
13231323
' );',
13241324
'};',
13251325

13261326
'PagingBlock.propTypes = {',
13271327
' nextPage: PropTypes.func.isRequired,',
13281328
' previousPage: PropTypes.func.isRequired,',
13291329
'};'
1330-
].join('\n'),
1331-
parserOptions: Object.assign({}, parserOptions, {ecmaVersion: 2017})
1330+
].join('\n')
13321331
}, {
13331332
code: [
13341333
'class Hello extends Component {',

0 commit comments

Comments
 (0)