@@ -618,21 +618,21 @@ ruleTester.run('no-typos', rule, {
618
618
` ,
619
619
parser : parsers . BABEL_ESLINT ,
620
620
parserOptions,
621
- errors : [ { message : ERROR_MESSAGE } ]
621
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
622
622
} , {
623
623
code : `
624
624
class Component extends React.Component {}
625
625
Component.PropTypes = {}
626
626
` ,
627
627
parserOptions,
628
- errors : [ { message : ERROR_MESSAGE } ]
628
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
629
629
} , {
630
630
code : `
631
631
function MyComponent() { return (<div>{this.props.myProp}</div>) }
632
632
MyComponent.PropTypes = {}
633
633
` ,
634
634
parserOptions,
635
- errors : [ { message : ERROR_MESSAGE } ]
635
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
636
636
} , {
637
637
code : `
638
638
class Component extends React.Component {
@@ -664,7 +664,7 @@ ruleTester.run('no-typos', rule, {
664
664
` ,
665
665
parser : parsers . BABEL_ESLINT ,
666
666
parserOptions,
667
- errors : [ { message : ERROR_MESSAGE } ]
667
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
668
668
} , {
669
669
code : `
670
670
class Component extends React.Component {}
@@ -756,21 +756,21 @@ ruleTester.run('no-typos', rule, {
756
756
` ,
757
757
parser : parsers . BABEL_ESLINT ,
758
758
parserOptions,
759
- errors : [ { message : ERROR_MESSAGE } ]
759
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
760
760
} , {
761
761
code : `
762
762
class Component extends React.Component {}
763
763
Component.DefaultProps = {}
764
764
` ,
765
765
parserOptions,
766
- errors : [ { message : ERROR_MESSAGE } ]
766
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
767
767
} , {
768
768
code : `
769
769
function MyComponent() { return (<div>{this.props.myProp}</div>) }
770
770
MyComponent.DefaultProps = {}
771
771
` ,
772
772
parserOptions,
773
- errors : [ { message : ERROR_MESSAGE } ]
773
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
774
774
} , {
775
775
code : `
776
776
class Component extends React.Component {
@@ -1567,13 +1567,13 @@ ruleTester.run('no-typos', rule, {
1567
1567
parserOptions,
1568
1568
errors : [ {
1569
1569
message : ERROR_MESSAGE_ES5 ,
1570
- type : 'ObjectExpression '
1570
+ type : 'Identifier '
1571
1571
} , {
1572
1572
message : ERROR_MESSAGE_ES5 ,
1573
- type : 'ObjectExpression '
1573
+ type : 'Identifier '
1574
1574
} , {
1575
1575
message : ERROR_MESSAGE_ES5 ,
1576
- type : 'ObjectExpression '
1576
+ type : 'Identifier '
1577
1577
} , {
1578
1578
message : ERROR_MESSAGE_LIFECYCLE_METHOD ,
1579
1579
type : 'Property'
@@ -1619,13 +1619,13 @@ ruleTester.run('no-typos', rule, {
1619
1619
parserOptions,
1620
1620
errors : [ {
1621
1621
message : ERROR_MESSAGE_ES5 ,
1622
- type : 'ObjectExpression '
1622
+ type : 'Identifier '
1623
1623
} , {
1624
1624
message : ERROR_MESSAGE_ES5 ,
1625
- type : 'ObjectExpression '
1625
+ type : 'Identifier '
1626
1626
} , {
1627
1627
message : ERROR_MESSAGE_ES5 ,
1628
- type : 'ObjectExpression '
1628
+ type : 'Identifier '
1629
1629
} , {
1630
1630
message : ERROR_MESSAGE_LIFECYCLE_METHOD ,
1631
1631
type : 'Property'
0 commit comments