Skip to content

Commit a97f417

Browse files
committed
fix lint issues
1 parent 20afc6c commit a97f417

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

shared/redux/actions/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
import { ACTION_TYPES } from '../constants/actionTypes';
55

66
export const splashLaunched = () => ({
7-
type: ACTION_TYPES.SPLASH.SPLASH_LAUNCHED
7+
type: ACTION_TYPES.SPLASH.SPLASH_LAUNCHED,
88
});

shared/redux/constants/actionTypes.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
const ACTION_TYPES = {
44
// Splash Screen Actions
55
SPLASH: {
6-
SPLASH_LAUNCHED: 'SPLASH_LAUNCHED'
6+
SPLASH_LAUNCHED: 'SPLASH_LAUNCHED',
77
},
88
// Home Screen Actions
99
HOME: {
10-
HOME_LAUNCHED: 'HOME_LAUNCHED'
11-
}
10+
HOME_LAUNCHED: 'HOME_LAUNCHED',
11+
},
1212
};
1313

1414
export { ACTION_TYPES };

shared/redux/reducers/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default (state = initialState, action: any) => {
99
case ACTION_TYPES.SPLASH.SPLASH_LAUNCHED:
1010
return {
1111
...state,
12-
isLoading: false
12+
isLoading: false,
1313
};
1414
default:
1515
return state;

shared/redux/store/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let middlewares = [thunkMiddleware.default];
77
if (__DEV__) {
88
const logger = require('redux-logger');
99
const loggerMiddleware = logger.createLogger({
10-
duration: true
10+
duration: true,
1111
});
1212
middlewares = [...middlewares, loggerMiddleware];
1313
}

src/navigators/router.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* Good place to define some commonly used methods like
44
* `popToScreen`, `dismissModal`...
55
*/
6-
import { Navigation } from "react-native-navigation";
6+
import { Navigation } from 'react-native-navigation';
77

8-
import { SCREENS } from "../constants/screen";
8+
import { SCREENS } from '../constants/screen';
99

1010
interface Screen {
11-
componentId: string,
12-
passProps?: object
11+
componentId: string;
12+
passProps?: object;
1313
}
1414

1515
/**
@@ -22,14 +22,14 @@ const showPushScreen = ({ componentId, passProps = {} }: Screen) => {
2222
name: SCREENS.Dummy,
2323
id: SCREENS.Dummy,
2424
passProps: {
25-
...passProps
25+
...passProps,
2626
},
2727
options: {
2828
topBar: {
2929
visible: true,
30-
}
31-
}
32-
}
30+
},
31+
},
32+
},
3333
});
3434
};
3535

@@ -45,12 +45,12 @@ const pop = ({ componentId }: Screen) => Navigation.pop(componentId);
4545

4646
const popToRoot = ({ componentId }: Screen) => Navigation.popToRoot(componentId);
4747

48-
const Router = {
48+
const ROUTER = {
4949
showPushScreen,
5050
popToScreen,
5151
dismissModal,
5252
pop,
53-
popToRoot
53+
popToRoot,
5454
};
5555

56-
export default Router;
56+
export default ROUTER;

src/view/screens/home/Component.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SafeAreaView, TouchableOpacity, Image } from 'react-native';
44

55
import styles from './styles';
66
import { CText } from '../../elements/custom';
7-
import Router from '../../../navigators/router';
7+
import router from '../../../navigators/router';
88
import { BUTTON_DEFAULT } from '../../elements/buttons';
99

1010
export interface Props {
@@ -39,12 +39,12 @@ class Home extends React.PureComponent<Props, State> {
3939

4040
showPushScreen = () => {
4141
const { componentId } = this.props;
42-
Router.showPushScreen({
42+
router.showPushScreen({
4343
componentId,
4444
passProps: {
45-
dummyText: 'Hello from Home !!!'
46-
}
47-
})
45+
dummyText: 'Hello from Home !!!',
46+
},
47+
});
4848
}
4949

5050
render() {

src/view/screens/home/styles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const styles = StyleSheet.create({
1717
button: {
1818
alignSelf: 'center',
1919
marginTop: 50,
20-
width: 250
21-
}
20+
width: 250,
21+
},
2222
});
2323

2424
export default styles;

src/view/screens/splash/Component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import styles from './styles';
66
import { BUTTON_DEFAULT } from '../../elements/buttons';
77

88
export interface Props {
9-
splashLaunched: Function,
9+
splashLaunched: Function;
1010
}
1111

1212
interface State {}

src/view/screens/splash/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { connect } from 'react-redux';
22

33
import Component from './Component';
44
import {
5-
splashScreenLaunched
5+
splashScreenLaunched,
66
} from '../../../../shared/redux/thunk/app';
77

88
const mapStateToProps = () => ({});

0 commit comments

Comments
 (0)