Fix ESLint errors
This commit is contained in:
parent
55bbcc9e56
commit
02b770b79a
|
@ -18,8 +18,9 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
AppRegistry,
|
||||
Component,
|
||||
StyleSheet,
|
||||
Text,
|
||||
|
|
|
@ -111,10 +111,12 @@ module.exports = {
|
|||
},
|
||||
|
||||
isNode: function() {
|
||||
// eslint-disable-next-line no-undef
|
||||
return typeof process == 'object' && Object.prototype.toString.call(process) == '[object process]';
|
||||
},
|
||||
|
||||
isNode6: function() {
|
||||
// eslint-disable-next-line no-undef
|
||||
return this.isNode() && process.version.indexOf('v6.') == 0;
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue