Skip to content

Commit 2dafbed

Browse files
authored
Merge pull request #12 from oslabs-beta/dev2
ES Lint Fixes
2 parents 8537ef7 + 9eabe03 commit 2dafbed

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

src/app/actions/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ export const deleteTab = tab => ({
7373
payload: tab,
7474
});
7575

76-
export const resetSlider = slider => ({
76+
export const resetSlider = () => ({
7777
type: types.SLIDER_ZERO,
7878
});

src/app/components/Action.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Action.propTypes = {
3939
selected: PropTypes.bool.isRequired,
4040
index: PropTypes.number.isRequired,
4141
dispatch: PropTypes.func.isRequired,
42+
delta: PropTypes.string.isRequired,
4243
};
4344

4445
export default Action;

src/app/containers/ActionContainer.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable react/no-array-index-key */
22
/* eslint-disable no-inner-declarations */
33
import React from 'react';
4-
import { diff, formatters } from 'jsondiffpatch';
4+
import { diff } from 'jsondiffpatch';
55
import Action from '../components/Action';
66

77
import { emptySnapshots } from '../actions/actions';
@@ -36,6 +36,7 @@ function ActionContainer() {
3636
});
3737
}
3838
if (shifted.children) {
39+
// eslint-disable-next-line no-loop-func
3940
Object.keys(shifted.children).forEach(el => {
4041
next.push(shifted.children[el]);
4142
});

src/app/containers/TravelContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33
import MainSlider from '../components/MainSlider';
44
import Dropdown from '../components/Dropdown';
55
import {
6-
playForward, pause, startPlaying, moveForward, moveBackward, resetSlider
6+
playForward, pause, startPlaying, moveForward, moveBackward, resetSlider,
77
} from '../actions/actions';
88
import { useStoreContext } from '../store';
99

src/app/reducers/mainReducer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export default (state, action) => produce(state, draft => {
4848
break;
4949
}
5050
case types.SLIDER_ZERO: {
51-
console.log('main reducer Slider Zero')
5251
port.postMessage({
5352
action: 'jumpToSnap',
5453
index: 0,

0 commit comments

Comments
 (0)