chore: tidy

This commit is contained in:
cha0s 2023-12-02 06:34:53 -06:00
parent b852b564e8
commit b7731fb8ab
5 changed files with 2 additions and 11 deletions

View File

@ -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;
}
},

View File

@ -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);
}

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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 {