From 30fff65674e180fd93fe95eb860287c16c40d118 Mon Sep 17 00:00:00 2001 From: german-p <31990095+german-p@users.noreply.github.com> Date: Tue, 15 Dec 2020 11:02:19 -0300 Subject: [PATCH] Fix linting errors --- package.json | 4 ++-- src/index.js | 3 +-- yarn.lock | 18 +++++++++--------- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 461e579..f7a3ff8 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/index.js b/src/index.js index b7c20cd..4918f3d 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,3 @@ - function appendSuffix(action, suffix, error) { if (typeof action === 'string') return `${action}_${suffix}`; if (Reflect.has(action, 'type')) { @@ -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; diff --git a/yarn.lock b/yarn.lock index 7af0747..ea0b487 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -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" @@ -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: @@ -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: