From f04f89f91aa03f2ce6421c0112222975b5474f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Maa=C3=9F?= <mathiasmaass@gmx.de> Date: Wed, 28 Apr 2021 20:41:25 +0200 Subject: [PATCH] do not use exports keyword as variable name #3421 (#3422) --- .eslintrc | 1 + src/index.js | 4 +--- src/init.js | 4 +--- src/state/index.js | 4 +--- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.eslintrc b/.eslintrc index 4ba53d967..35d920424 100644 --- a/.eslintrc +++ b/.eslintrc @@ -30,5 +30,6 @@ }], "react/jsx-props-no-spreading": "off", "arrow-parens": "off", + "import/no-anonymous-default-export": "off" } } diff --git a/src/index.js b/src/index.js index a5ebe2e6e..84091415d 100644 --- a/src/index.js +++ b/src/index.js @@ -1,9 +1,7 @@ import init from './init'; import state from './state'; -const exports = { +export default { ...init, ...state, }; - -export default exports; diff --git a/src/init.js b/src/init.js index 87aa17dcc..160437532 100644 --- a/src/init.js +++ b/src/init.js @@ -15,8 +15,6 @@ function viewer(config, pluginsOrStruct) { return new MiradorViewer(config, struct); } -const exports = { +export default { viewer, }; - -export default exports; diff --git a/src/state/index.js b/src/state/index.js index b55ed16a0..6c5d5191b 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -4,12 +4,10 @@ import * as sagas from './sagas'; import * as selectors from './selectors'; import createStore from './createStore'; -const exports = { +export default { actions, createStore, reducers, sagas, selectors, }; - -export default exports; -- GitLab