Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic committed Jun 24, 2016
1 parent a9b6cd5 commit df88468
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"no-caller": 1, // disallow use of arguments.caller or arguments.callee
"no-div-regex": 1, // disallow division operators explicitly at beginning of regular expression (off by default)
"no-else-return": 0, // disallow else after a return in an if (off by default)
"no-empty-label": 1, // disallow use of labels for anything other then loops and switches
"no-eq-null": 0, // disallow comparisons to null without a type-checking operator (off by default)
"no-eval": 1, // disallow use of eval()
"no-extend-native": 1, // disallow adding to native types
Expand Down Expand Up @@ -183,17 +182,15 @@
"no-ternary": 0, // disallow the use of ternary operators (off by default)
"no-trailing-spaces": 1, // disallow trailing whitespace at the end of lines
"no-underscore-dangle": 0, // disallow dangling underscores in identifiers
"no-extra-parens": 0, // disallow wrapping of non-IIFE statements in parens
"no-mixed-spaces-and-tabs": 1, // disallow mixed spaces and tabs for indentation
"quotes": [1, "single", "avoid-escape"], // specify whether double or single quotes should be used
"quote-props": 0, // require quotes around object literal property names (off by default)
"semi": 1, // require or disallow use of semicolons instead of ASI
"sort-vars": 0, // sort variables within the same declaration block (off by default)
"space-after-keywords": 1, // require a space after certain keywords (off by default)
"keyword-spacing": [1, { "before": true, "after": true }], // require a space after certain keywords (off by default)
"space-in-brackets": 0, // require or disallow spaces inside brackets (off by default)
"space-in-parens": 0, // require or disallow spaces inside parentheses (off by default)
"space-infix-ops": 1, // require spaces around operators
"space-return-throw-case": 1, // require a space after return, throw, and case
"space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (words on by default, nonwords off by default)
"max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default)
"one-var": 0, // allow just one var statement per function (off by default)
Expand Down
2 changes: 1 addition & 1 deletion js/common/F8DrawerLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class F8DrawerLayout extends React.Component {
const {Right, Left} = DrawerLayoutAndroid.positions;
return (
<DrawerLayoutAndroid
ref={(drawer) => this._drawer = drawer}
ref={(drawer) => { this._drawer = drawer; }}
{...props}
drawerPosition={drawerPosition === 'right' ? Right : Left}
onDrawerOpen={this.onDrawerOpen}
Expand Down
4 changes: 2 additions & 2 deletions js/common/ListContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class ListContainer extends React.Component {
const content = React.Children.map(this.props.children, (child, idx) => {
segments.push(child.props.title);
return <RelayLoading>{React.cloneElement(child, {
ref: (ref) => this._refs[idx] = ref,
ref: (ref) => { this._refs[idx] = ref; },
onScroll: (e) => this.handleScroll(idx, e),
style: styles.listView,
showsVerticalScrollIndicator: false,
Expand Down Expand Up @@ -307,7 +307,7 @@ class ListContainer extends React.Component {

return (
<Animated.View
ref={(ref) => this._pinned = ref}
ref={(ref) => { this._pinned = ref; }}
onLayout={this.handleStickyHeaderLayout}
style={[styles.stickyHeader, {opacity}, {transform}]}>
{stickyHeader}
Expand Down
2 changes: 1 addition & 1 deletion js/tabs/schedule/GeneralScheduleView.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class GeneralScheduleView extends React.Component {
}
return (
<F8DrawerLayout
ref={(drawer) => this._drawer = drawer}
ref={(drawer) => { this._drawer = drawer; }}
drawerWidth={300}
drawerPosition="right"
renderNavigationView={this.renderNavigationView}>
Expand Down

0 comments on commit df88468

Please sign in to comment.