Skip to content

Commit 67d0e3e

Browse files
committed
fixed linter errors from tslint v4
1 parent f0769c3 commit 67d0e3e

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ function App() {
2828
}
2929

3030
export const app = ReactDOM.render(
31-
<App />, document.getElementById('app-container')
31+
<App />, document.getElementById('app-container'),
3232
);

src/containers/currency-converter-container/components/currency-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function CurrencySelect({currencies = [], value, onChange}: IProps) {
1919
value={value}
2020
onChange={handleChange}>
2121
{currencies.map(currency =>
22-
<option key={currency}>{currency}</option>
22+
<option key={currency}>{currency}</option>,
2323
)}
2424
</select>
2525
);

src/containers/currency-converter-container/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class CurrencyConverterContainer extends React.Component<IProps, IState>
5050

5151
const stateToProps = (storeState: IRootReducer) => ({
5252
currencyRates: storeState.currencyRates,
53-
currencyConverter: storeState.currencyConverter
53+
currencyConverter: storeState.currencyConverter,
5454
});
5555

5656
const actionsToProps = Object.assign({}, currencyConverterActions);

src/layouts/components/layout-footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classNames from 'classnames';
44
const inlineStyles = {
55
topBorder: {
66
borderTop: '1px solid #ddd',
7-
}
7+
},
88
};
99

1010
export function LayoutFooter({className = '', children = undefined}) {

src/layouts/components/layout-main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classNames from 'classnames';
44
const inlineStyles = {
55
background: {
66
backgroundColor: '#f7f7f7',
7-
}
7+
},
88
};
99

1010
export function LayoutMain({className = '', children = undefined}) {

src/store/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { routerReducer } from 'react-router-redux';
44
import { createStore } from 'redux';
55

66
import {
7-
default as currencyRatesReducer, ICurrencyRatesReducer
7+
default as currencyRatesReducer, ICurrencyRatesReducer,
88
} from './currency-rates-reducer';
99
import {
10-
default as currencyConverterReducer, ICurrencyConverterReducer
10+
default as currencyConverterReducer, ICurrencyConverterReducer,
1111
} from './currency-converter-reducer';
1212

1313
export interface IRootReducer {
@@ -19,7 +19,7 @@ export interface IRootReducer {
1919
export const rootReducer = combineReducers({
2020
routing: routerReducer,
2121
currencyRates: currencyRatesReducer,
22-
currencyConverter: currencyConverterReducer
22+
currencyConverter: currencyConverterReducer,
2323
});
2424

2525
// rehydrating state on app start: implement here...
@@ -28,7 +28,7 @@ const recoverState = () => ({});
2828
export const store = createStore(
2929
rootReducer,
3030
recoverState(),
31-
window.devToolsExtension && window.devToolsExtension()
31+
window.devToolsExtension && window.devToolsExtension(),
3232
);
3333

3434
// systemjs-hot-reloader hook, rehydrating the state of redux store

src/store/tests/currency-rates-reducer.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as currencyRatesActions from '../currency-rates-reducer';
33

44
// testing action creators
55

6-
test('testing action creator currencyRatesFetchSuccess', function(t) {
6+
test('testing action creator currencyRatesFetchSuccess', function (t) {
77
// arrange
88
// tslint:disable
99
const results = {
@@ -19,7 +19,7 @@ test('testing action creator currencyRatesFetchSuccess', function(t) {
1919
const actual = currencyRatesActions.loadCurrencyRatesSuccess(results);
2020
const expected = {
2121
type: 'currencyRates/LOAD_CURRENCY_RATES_SUCCESS',
22-
payload: results
22+
payload: results,
2323
};
2424

2525
// assert
@@ -28,15 +28,15 @@ test('testing action creator currencyRatesFetchSuccess', function(t) {
2828

2929
});
3030

31-
test('testing action creator currencyRatesFetchError', function(t) {
31+
test('testing action creator currencyRatesFetchError', function (t) {
3232
// arrange
3333
const errorMessage = 'Error Message';
3434

3535
// act
3636
const actual = currencyRatesActions.loadCurrencyRatesError(errorMessage);
3737
const expected = {
3838
type: 'currencyRates/LOAD_CURRENCY_RATES_ERROR',
39-
payload: errorMessage
39+
payload: errorMessage,
4040
};
4141

4242
// assert

src/themes/colors.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ const selectedTheme = DARK_THEME;
44
export default {
55
get textColor() {
66
switch (selectedTheme) {
7-
case DARK_THEME: return '#111';
7+
case DARK_THEME: return '#111';
88
default: return '#fff';
99
}
1010
},
1111
borderColor: '#222',
1212
backgroundColor: 'gold',
1313
shadowColor: '#000',
14-
shadowColorLight: '#888'
14+
shadowColorLight: '#888',
1515
};

0 commit comments

Comments
 (0)