chore: tidy
This commit is contained in:
parent
b852b564e8
commit
b7731fb8ab
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user