Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
german-p committed Dec 15, 2020
1 parent 88d072f commit 30fff65
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -16,7 +16,7 @@
"coverage": "nyc --require @babel/register --reporter=text mocha",
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
"lint": "eslint ./src",
"prepublish": "npm run lint && npm run test && npm run build"
"prepare": "npm run lint && npm run test && npm run build"
},
"keywords": [
"react",
Expand All @@ -35,7 +35,7 @@
"chai-as-promised": "^7.1.1",
"coveralls": "^3.0.3",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.17.3",
"mocha": "^6.1.4",
"mocha-lcov-reporter": "^1.3.0",
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
@@ -1,4 +1,3 @@

function appendSuffix(action, suffix, error) {
if (typeof action === 'string') return `${action}_${suffix}`;
if (Reflect.has(action, 'type')) {
Expand Down Expand Up @@ -39,7 +38,7 @@ export function failure(action, error) { return appendSuffix(action, 'FAILURE',
* @returns {function} The redux thunk for the action
*/
export function asThunk(actionCreator, asyncCall, afterSuccess, afterFailure) {
return payload => async (dispatch) => {
return (payload) => async (dispatch) => {
const action = actionCreator(payload);
dispatch(action);
let result;
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Expand Up @@ -1031,7 +1031,7 @@ concat-map@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"

confusing-browser-globals@^1.0.5:
confusing-browser-globals@^1.0.10:
version "1.0.10"
resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz#30d1e7f3d1b882b25ec4933d1d1adac353d20a59"

Expand Down Expand Up @@ -1222,13 +1222,13 @@ escape-string-regexp@1.0.5, escape-string-regexp@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"

eslint-config-airbnb-base@^13.1.0:
version "13.2.0"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-13.2.0.tgz#f6ea81459ff4dec2dda200c35f1d8f7419d57943"
eslint-config-airbnb-base@^14.2.1:
version "14.2.1"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz#8a2eb38455dc5a312550193b319cdaeef042cd1e"
dependencies:
confusing-browser-globals "^1.0.5"
object.assign "^4.1.0"
object.entries "^1.1.0"
confusing-browser-globals "^1.0.10"
object.assign "^4.1.2"
object.entries "^1.1.2"

eslint-import-resolver-node@^0.3.4:
version "0.3.4"
Expand Down Expand Up @@ -2101,7 +2101,7 @@ object.assign@4.1.0:
has-symbols "^1.0.0"
object-keys "^1.0.11"

object.assign@^4.1.0, object.assign@^4.1.1:
object.assign@^4.1.0, object.assign@^4.1.1, object.assign@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940"
dependencies:
Expand All @@ -2110,7 +2110,7 @@ object.assign@^4.1.0, object.assign@^4.1.1:
has-symbols "^1.0.1"
object-keys "^1.1.1"

object.entries@^1.1.0:
object.entries@^1.1.2:
version "1.1.3"
resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.3.tgz#c601c7f168b62374541a07ddbd3e2d5e4f7711a6"
dependencies:
Expand Down

0 comments on commit 30fff65

Please sign in to comment.