Skip to content

Commit

Permalink
Fix lint errors and warnings
Browse files Browse the repository at this point in the history
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 facebook#1254
Github Author: Eric Sauter <[email protected]>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
  • Loading branch information
Eric Sauter committed May 14, 2015
1 parent babdc21 commit 711dd66
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"document": false,
"escape": false,
"exports": false,
"fetch": false,
"global": false,
"jest": false,
"Map": true,
Expand Down
1 change: 0 additions & 1 deletion Examples/UIExplorer/ExampleTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ export type ExampleModule = {
examples: Array<Example>;
external?: bool;
};

2 changes: 1 addition & 1 deletion Examples/UIExplorer/MapViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var regionText = {
longitude: '0',
latitudeDelta: '0',
longitudeDelta: '0',
}
};

var MapRegionInput = React.createClass({

Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/NavigatorIOSColorsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<NavigatorIOS
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/TabBarIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var TabBarExample = React.createClass({
this.setState({
selectedTab: 'greenTab',
presses: this.state.presses + 1
});
});
}}>
{this._renderContent('#21551C', 'Green Tab')}
</TabBarIOS.Item>
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/TextInputExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ exports.examples = [
<View style={styles.multilineChild}/>
</TextInput>
</View>
)
);
}
}
];

0 comments on commit 711dd66

Please sign in to comment.