diff --git a/packages/core/src/server/index.js b/packages/core/src/server/index.js index 2d41aa1..8a19cf7 100644 --- a/packages/core/src/server/index.js +++ b/packages/core/src/server/index.js @@ -15,7 +15,6 @@ export const hooks = { }, '@flecks/core.webpack': (target, config) => { if ('web' === target) { - // eslint-disable-next-line no-param-reassign config.devServer.writeToDisk = true; } }, diff --git a/packages/core/src/sidebar/organization/organization/index.jsx b/packages/core/src/sidebar/organization/organization/index.jsx index a852387..229ecf6 100644 --- a/packages/core/src/sidebar/organization/organization/index.jsx +++ b/packages/core/src/sidebar/organization/organization/index.jsx @@ -25,11 +25,11 @@ const normalizeDisplayName = (displayName) => ( displayName.startsWith('HotExported') ? displayName.slice(11) : displayName ); -const Organization = ({ +function Organization({ label, resourcePaths, uuid, -}) => { +}) { const dispatch = useDispatch(); const current = useSelector(currentResourceSelector); const flecks = useFlecks(); @@ -69,14 +69,12 @@ const Organization = ({ } else { const next = createNextState(expanded, (draft) => { - /* eslint-disable no-param-reassign */ if (value in draft) { delete draft[value]; } else { draft[value] = true; } - /* eslint-enable no-param-reassign */ }); setExpanded(next); } diff --git a/packages/core/src/state/project.js b/packages/core/src/state/project.js index c9533ad..83cc7d4 100644 --- a/packages/core/src/state/project.js +++ b/packages/core/src/state/project.js @@ -10,14 +10,12 @@ export const projectSelector = (state) => state.project; const slice = createSlice({ name: 'persea/project', initialState: null, - /* eslint-disable no-param-reassign */ reducers: { setProject: (state, {payload}) => payload, }, extraReducers: (builder) => { builder.addCase(hydrateServer, (state, {payload}) => payload.req[HydrateServer]); }, - /* eslint-enable no-param-reassign */ }); slice.reducer.hydrateServer = async (req) => { diff --git a/packages/core/src/state/projects.js b/packages/core/src/state/projects.js index 940e626..c0f00c6 100644 --- a/packages/core/src/state/projects.js +++ b/packages/core/src/state/projects.js @@ -51,7 +51,6 @@ const slice = createSlice({ pending: {}, resources: {}, }, - /* eslint-disable no-param-reassign */ extraReducers: (builder) => { builder.addCase(hydrateServer, (state, action) => { const {req} = action.payload; @@ -89,7 +88,6 @@ const slice = createSlice({ // delete resources[`${project}${from}`]; // }, }, - /* eslint-enable no-param-reassign */ }); slice.reducer.hydrateServer = async (req) => { diff --git a/packages/core/src/state/resource.js b/packages/core/src/state/resource.js index 8a08bad..ec703e6 100644 --- a/packages/core/src/state/resource.js +++ b/packages/core/src/state/resource.js @@ -22,7 +22,6 @@ const slice = createSlice({ current: null, open: [], }, - /* eslint-disable no-param-reassign */ reducers: { closeResource: (state, {payload}) => { const index = state.open.findIndex(({uri}) => uri === payload); @@ -48,7 +47,6 @@ const slice = createSlice({ state.open = openResourcesSelector(payload); }); }, - /* eslint-enable no-param-reassign */ }); export const {