Permalink
Browse files

Fix eslint

  • Loading branch information...
1 parent a9b6cd5 commit df8846840a481f7ac50dd4861c326fcbab85c504 @frantic frantic committed Jun 24, 2016
Showing with 5 additions and 8 deletions.
  1. +1 −4 .eslintrc
  2. +1 −1 js/common/F8DrawerLayout.js
  3. +2 −2 js/common/ListContainer.js
  4. +1 −1 js/tabs/schedule/GeneralScheduleView.js
View
@@ -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
@@ -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)
@@ -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}
@@ -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,
@@ -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}
@@ -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}>

0 comments on commit df88468

Please sign in to comment.