Skip to content

Commit e2517c4

Browse files
committed
[Fix] sort-prop-types Pass all test cases
1 parent 7095929 commit e2517c4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/lib/rules/sort-prop-types.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,8 @@ ruleTester.run('sort-prop-types', rule, {
506506
code: `
507507
var First = createReactClass({
508508
propTypes: {
509-
/* z */
510-
z: PropTypes.string,
511-
/* a */
512-
a: PropTypes.any
509+
a: PropTypes.any,
510+
z: PropTypes.string
513511
},
514512
render: function() {
515513
return <div />;
@@ -532,7 +530,7 @@ ruleTester.run('sort-prop-types', rule, {
532530
errors: [
533531
{
534532
messageId: 'propsNotSorted',
535-
line: 7,
533+
line: 5,
536534
column: 13,
537535
type: 'Property',
538536
},

0 commit comments

Comments
 (0)