@@ -646,21 +646,21 @@ ruleTester.run('no-typos', rule, {
646
646
` ,
647
647
parser : parsers . BABEL_ESLINT ,
648
648
parserOptions,
649
- errors : [ { message : ERROR_MESSAGE } ]
649
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
650
650
} , {
651
651
code : `
652
652
class Component extends React.Component {}
653
653
Component.PropTypes = {}
654
654
` ,
655
655
parserOptions,
656
- errors : [ { message : ERROR_MESSAGE } ]
656
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
657
657
} , {
658
658
code : `
659
659
function MyComponent() { return (<div>{this.props.myProp}</div>) }
660
660
MyComponent.PropTypes = {}
661
661
` ,
662
662
parserOptions,
663
- errors : [ { message : ERROR_MESSAGE } ]
663
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
664
664
} , {
665
665
code : `
666
666
class Component extends React.Component {
@@ -669,7 +669,7 @@ ruleTester.run('no-typos', rule, {
669
669
` ,
670
670
parser : parsers . BABEL_ESLINT ,
671
671
parserOptions,
672
- errors : [ { message : ERROR_MESSAGE } ]
672
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
673
673
} , {
674
674
code : `
675
675
class Component extends React.Component {}
@@ -784,21 +784,21 @@ ruleTester.run('no-typos', rule, {
784
784
` ,
785
785
parser : parsers . BABEL_ESLINT ,
786
786
parserOptions,
787
- errors : [ { message : ERROR_MESSAGE } ]
787
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
788
788
} , {
789
789
code : `
790
790
class Component extends React.Component {}
791
791
Component.DefaultProps = {}
792
792
` ,
793
793
parserOptions,
794
- errors : [ { message : ERROR_MESSAGE } ]
794
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
795
795
} , {
796
796
code : `
797
797
function MyComponent() { return (<div>{this.props.myProp}</div>) }
798
798
MyComponent.DefaultProps = {}
799
799
` ,
800
800
parserOptions,
801
- errors : [ { message : ERROR_MESSAGE } ]
801
+ errors : [ { message : ERROR_MESSAGE , type : 'Identifier' } ]
802
802
} , {
803
803
code : `
804
804
class Component extends React.Component {
@@ -1594,13 +1594,13 @@ ruleTester.run('no-typos', rule, {
1594
1594
parserOptions,
1595
1595
errors : [ {
1596
1596
message : ERROR_MESSAGE_ES5 ,
1597
- type : 'ObjectExpression '
1597
+ type : 'Identifier '
1598
1598
} , {
1599
1599
message : ERROR_MESSAGE_ES5 ,
1600
- type : 'ObjectExpression '
1600
+ type : 'Identifier '
1601
1601
} , {
1602
1602
message : ERROR_MESSAGE_ES5 ,
1603
- type : 'ObjectExpression '
1603
+ type : 'Identifier '
1604
1604
} , {
1605
1605
message : ERROR_MESSAGE_LIFECYCLE_METHOD ,
1606
1606
type : 'Property'
@@ -1646,13 +1646,13 @@ ruleTester.run('no-typos', rule, {
1646
1646
parserOptions,
1647
1647
errors : [ {
1648
1648
message : ERROR_MESSAGE_ES5 ,
1649
- type : 'ObjectExpression '
1649
+ type : 'Identifier '
1650
1650
} , {
1651
1651
message : ERROR_MESSAGE_ES5 ,
1652
- type : 'ObjectExpression '
1652
+ type : 'Identifier '
1653
1653
} , {
1654
1654
message : ERROR_MESSAGE_ES5 ,
1655
- type : 'ObjectExpression '
1655
+ type : 'Identifier '
1656
1656
} , {
1657
1657
message : ERROR_MESSAGE_LIFECYCLE_METHOD ,
1658
1658
type : 'Property'
0 commit comments