Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Commit

Permalink
lint: fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Aug 16, 2016
1 parent affd62b commit 72b926e
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},

"rules": {
"comma-dangle": 0,
"comma-dangle": [1,"always-multiline"],
"max-depth": 0,
"max-len": 0,
"max-params": 0,
Expand Down
6 changes: 3 additions & 3 deletions example/src/CoverflowExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TabViewAnimated, TabViewPage } from 'react-native-tab-view';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#222'
backgroundColor: '#222',
},
page: {
flex: 1,
Expand All @@ -24,7 +24,7 @@ const styles = StyleSheet.create({
shadowRadius: 8,
shadowOffset: {
height: 8,
}
},
},
cover: {
width: 200,
Expand All @@ -33,7 +33,7 @@ const styles = StyleSheet.create({
label: {
margin: 16,
color: '#fff',
}
},
});

const ALBUMS = {
Expand Down
4 changes: 2 additions & 2 deletions example/src/ListViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ const styles = StyleSheet.create({
color: 'rgba(0, 0, 0, .4)',
fontWeight: 'bold',
textAlign: 'center',
}
},
});

export default class ListViewExample extends Component {
state = {
data: [],
dataSource: new ListView.DataSource({
rowHasChanged: (r1, r2) => r1 !== r2
rowHasChanged: (r1, r2) => r1 !== r2,
}),
};

Expand Down
2 changes: 1 addition & 1 deletion example/src/ScrollViewsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const styles = StyleSheet.create({
},
indicator: {
backgroundColor: '#ffeb3b',
}
},
});

export default class TopBarTextExample extends Component {
Expand Down
2 changes: 1 addition & 1 deletion example/src/TopBarIconExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const styles = StyleSheet.create({
},
indicator: {
backgroundColor: '#ffeb3b',
}
},
});

export default class TopBarIconExample extends Component {
Expand Down
2 changes: 1 addition & 1 deletion example/src/TopBarIconTextExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const styles = StyleSheet.create({
},
indicator: {
backgroundColor: '#ffeb3b',
}
},
});

export default class TopBarIconExample extends Component {
Expand Down
4 changes: 2 additions & 2 deletions example/src/TopBarTextExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const styles = StyleSheet.create({
},
label: {
color: '#fff',
fontWeight: '500',
}
fontWeight: '400',
},
});

export default class TopBarTextExample extends Component {
Expand Down
6 changes: 3 additions & 3 deletions src/TabViewAnimated.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ export default class TabViewAnimated extends Component<void, Props, State> {
style: View.propTypes.style,
};

state: State;

constructor(props: Props) {
super(props);

this.state = {
loaded: [ this.props.navigationState.index ],
}
};
}

state: State;

shouldComponentUpdate(nextProps: Props, nextState: State) {
return shallowCompare(this, nextProps, nextState);
}
Expand Down
2 changes: 1 addition & 1 deletion src/TabViewPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class TabViewPage extends Component<void, Props, State> {
const scene = {
route,
focused: index === routes.indexOf(route),
index: routes.indexOf(route)
index: routes.indexOf(route),
};

return (
Expand Down
2 changes: 1 addition & 1 deletion src/TabViewPanResponder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function forHorizontal(props: Props) {
let isMoving = null;

const updatePosition = Animated.event([
{ position: props.position }
{ position: props.position },
]);

function isIndexInRange(index: number) {
Expand Down
2 changes: 1 addition & 1 deletion src/TabViewStyleInterpolator.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function forHorizontal(props: Props) {

return {
width,
transform: [ { translateX } ]
transform: [ { translateX } ],
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/TabViewTransitioner.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class TabViewTransitioner extends Component<DefaultProps, Props,
friction: 30,
}).start(resolve);
});
}
},
};

constructor(props: Props) {
Expand Down

0 comments on commit 72b926e

Please sign in to comment.