From 711dd6602ea5bae2bb781098a576e62cdd5dd072 Mon Sep 17 00:00:00 2001 From: Eric Sauter Date: Thu, 14 May 2015 08:58:31 -0700 Subject: [PATCH] Fix lint errors and warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Fix the following problems resulting from running `npm run lint`: ``` Examples/Movies/SearchScreen.js 118:4 error 'fetch' is not defined no-undef 177:4 error 'fetch' is not defined no-undef Examples/UIExplorer/MapViewExample.js 32:1 warning Missing semicolon semi Examples/UIExplorer/NavigatorIOSColorsExample.js 48:26 warning ['lightContent'] is better written in dot notation dot-notation Examples/UIExplorer/TabBarIOSExample.js 81:16 warning Trailing spaces not allowed no-trailing-spaces Examples/UIExplorer/TextInputExample.js 390:7 warning Missing semicolon semi ✖ 6 problems ``` Closes https://github.com/facebook/react-native/pull/1254 Github Author: Eric Sauter Test Plan: Imported from GitHub, without a `Test Plan:` line. --- .eslintrc | 1 + Examples/UIExplorer/ExampleTypes.js | 1 - Examples/UIExplorer/MapViewExample.js | 2 +- Examples/UIExplorer/NavigatorIOSColorsExample.js | 2 +- Examples/UIExplorer/TabBarIOSExample.js | 2 +- Examples/UIExplorer/TextInputExample.js | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.eslintrc b/.eslintrc index a81fb56f3..da893862d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -16,6 +16,7 @@ "document": false, "escape": false, "exports": false, + "fetch": false, "global": false, "jest": false, "Map": true, diff --git a/Examples/UIExplorer/ExampleTypes.js b/Examples/UIExplorer/ExampleTypes.js index 7f6ff08d8..44db06a6c 100644 --- a/Examples/UIExplorer/ExampleTypes.js +++ b/Examples/UIExplorer/ExampleTypes.js @@ -27,4 +27,3 @@ export type ExampleModule = { examples: Array; external?: bool; }; - diff --git a/Examples/UIExplorer/MapViewExample.js b/Examples/UIExplorer/MapViewExample.js index e8dae25ac..5df00236d 100644 --- a/Examples/UIExplorer/MapViewExample.js +++ b/Examples/UIExplorer/MapViewExample.js @@ -29,7 +29,7 @@ var regionText = { longitude: '0', latitudeDelta: '0', longitudeDelta: '0', -} +}; var MapRegionInput = React.createClass({ diff --git a/Examples/UIExplorer/NavigatorIOSColorsExample.js b/Examples/UIExplorer/NavigatorIOSColorsExample.js index 386586f23..a045807c7 100644 --- a/Examples/UIExplorer/NavigatorIOSColorsExample.js +++ b/Examples/UIExplorer/NavigatorIOSColorsExample.js @@ -45,7 +45,7 @@ var NavigatorIOSColors = React.createClass({ render: function() { // Set StatusBar with light contents to get better contrast - StatusBarIOS.setStyle(StatusBarIOS.Style['lightContent']); + StatusBarIOS.setStyle(StatusBarIOS.Style.lightContent); return ( {this._renderContent('#21551C', 'Green Tab')} diff --git a/Examples/UIExplorer/TextInputExample.js b/Examples/UIExplorer/TextInputExample.js index 922dd9607..10064491d 100644 --- a/Examples/UIExplorer/TextInputExample.js +++ b/Examples/UIExplorer/TextInputExample.js @@ -387,7 +387,7 @@ exports.examples = [ - ) + ); } } ];