Skip to content

Commit 1919156

Browse files
author
Michael Sargent
committed
Update lint rules
1 parent 50ae0e5 commit 1919156

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

.eslintrc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
"browser": true
66
},
77
"rules": {
8-
"import/prefer-default-export": 0,
9-
"consistent-return": 0,
10-
"arrow-parens": [
11-
2,
12-
"always"
13-
]
8+
"import/prefer-default-export": 0
149
}
1510
}

src/actions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { parse } from 'query-string';
22
import { PUSH, REPLACE, GO, GO_BACK, GO_FORWARD, LOCATION_CHANGE } from './constants';
33

4-
export const push = (href) => ({
4+
export const push = href => ({
55
type: PUSH,
66
payload: href,
77
});
88

9-
export const replace = (href) => ({
9+
export const replace = href => ({
1010
type: REPLACE,
1111
payload: href,
1212
});
1313

14-
export const go = (index) => ({
14+
export const go = index => ({
1515
type: GO,
1616
payload: index,
1717
});

src/middleware.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { PUSH, REPLACE, GO, GO_BACK, GO_FORWARD } from './constants';
22

3-
export const routerMiddleware = (history) => () => (next) => (action) => {
3+
// eslint-disable-next-line consistent-return
4+
export const routerMiddleware = history => () => next => (action) => {
45
switch (action.type) {
56
case PUSH:
67
history.push(action.payload);

test/.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"env": {
3-
"node": true,
43
"mocha": true
54
}
65
}

0 commit comments

Comments
 (0)