File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,15 @@ module.exports = {
27
27
// Public
28
28
// --------------------------------------------------------------------------
29
29
30
+ let calleeObjectName = / ^ R e a c t D O M $ / ;
31
+ if ( versionUtil . testReactVersion ( context , '15.0.0' ) ) {
32
+ calleeObjectName = / ^ R e a c t D O M $ / ;
33
+ } else if ( versionUtil . testReactVersion ( context , '0.14.0' ) ) {
34
+ calleeObjectName = / ^ R e a c t ( D O M ) ? $ / ;
35
+ } else if ( versionUtil . testReactVersion ( context , '0.13.0' ) ) {
36
+ calleeObjectName = / ^ R e a c t $ / ;
37
+ }
38
+
30
39
return {
31
40
32
41
CallExpression : function ( node ) {
@@ -36,15 +45,6 @@ module.exports = {
36
45
return ;
37
46
}
38
47
39
- let calleeObjectName = / ^ R e a c t D O M $ / ;
40
- if ( versionUtil . testReactVersion ( context , '15.0.0' ) ) {
41
- calleeObjectName = / ^ R e a c t D O M $ / ;
42
- } else if ( versionUtil . testReactVersion ( context , '0.14.0' ) ) {
43
- calleeObjectName = / ^ R e a c t ( D O M ) ? $ / ;
44
- } else if ( versionUtil . testReactVersion ( context , '0.13.0' ) ) {
45
- calleeObjectName = / ^ R e a c t $ / ;
46
- }
47
-
48
48
if (
49
49
callee . object . type !== 'Identifier' ||
50
50
! calleeObjectName . test ( callee . object . name ) ||
You can’t perform that action at this time.
0 commit comments