Fix ESLint errors

This commit is contained in:
Scott Kyle 2016-05-16 14:15:56 -07:00
parent 55bbcc9e56
commit 02b770b79a
2 changed files with 4 additions and 1 deletions

View File

@ -18,8 +18,9 @@
'use strict';
import React from 'react';
import {
AppRegistry,
Component,
StyleSheet,
Text,

View File

@ -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;
},
};