From 02b770b79a582cb16a381ad24839efeda0b4bede Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Mon, 16 May 2016 14:15:56 -0700 Subject: [PATCH] Fix ESLint errors --- examples/ReactNativeBenchmarks/benchmarks.js | 3 ++- tests/js/asserts.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/ReactNativeBenchmarks/benchmarks.js b/examples/ReactNativeBenchmarks/benchmarks.js index a0b3cb47..ea8c2322 100644 --- a/examples/ReactNativeBenchmarks/benchmarks.js +++ b/examples/ReactNativeBenchmarks/benchmarks.js @@ -18,8 +18,9 @@ 'use strict'; +import React from 'react'; + import { - AppRegistry, Component, StyleSheet, Text, diff --git a/tests/js/asserts.js b/tests/js/asserts.js index 7031717b..fae31ea6 100644 --- a/tests/js/asserts.js +++ b/tests/js/asserts.js @@ -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; }, };