[build] upgrade eslint to 9.37.0 (#88)

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88
Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org>
Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
This commit is contained in:
Zoë Bijl
2025-10-12 13:42:02 +02:00
committed by tobi
parent 75d7a62693
commit 1ff70886a1
975 changed files with 22196 additions and 21964 deletions
@@ -1,4 +1,4 @@
import { Map as ImmutableMap, List as ImmutableList, fromJS } from 'immutable';
import { Map as ImmutableMap, List as ImmutableList, fromJS } from "immutable";
import {
TRENDS_TAGS_FETCH_REQUEST,
@@ -7,7 +7,7 @@ import {
TRENDS_LINKS_FETCH_REQUEST,
TRENDS_LINKS_FETCH_SUCCESS,
TRENDS_LINKS_FETCH_FAIL,
} from 'flavours/glitch/actions/trends';
} from "flavours/glitch/actions/trends";
const initialState = ImmutableMap({
tags: ImmutableMap({
@@ -23,25 +23,25 @@ const initialState = ImmutableMap({
export default function trendsReducer(state = initialState, action) {
switch(action.type) {
case TRENDS_TAGS_FETCH_REQUEST:
return state.setIn(['tags', 'isLoading'], true);
case TRENDS_TAGS_FETCH_SUCCESS:
return state.withMutations(map => {
map.setIn(['tags', 'items'], fromJS(action.trends));
map.setIn(['tags', 'isLoading'], false);
});
case TRENDS_TAGS_FETCH_FAIL:
return state.setIn(['tags', 'isLoading'], false);
case TRENDS_LINKS_FETCH_REQUEST:
return state.setIn(['links', 'isLoading'], true);
case TRENDS_LINKS_FETCH_SUCCESS:
return state.withMutations(map => {
map.setIn(['links', 'items'], fromJS(action.trends));
map.setIn(['links', 'isLoading'], false);
});
case TRENDS_LINKS_FETCH_FAIL:
return state.setIn(['links', 'isLoading'], false);
default:
return state;
case TRENDS_TAGS_FETCH_REQUEST:
return state.setIn(["tags", "isLoading"], true);
case TRENDS_TAGS_FETCH_SUCCESS:
return state.withMutations(map => {
map.setIn(["tags", "items"], fromJS(action.trends));
map.setIn(["tags", "isLoading"], false);
});
case TRENDS_TAGS_FETCH_FAIL:
return state.setIn(["tags", "isLoading"], false);
case TRENDS_LINKS_FETCH_REQUEST:
return state.setIn(["links", "isLoading"], true);
case TRENDS_LINKS_FETCH_SUCCESS:
return state.withMutations(map => {
map.setIn(["links", "items"], fromJS(action.trends));
map.setIn(["links", "isLoading"], false);
});
case TRENDS_LINKS_FETCH_FAIL:
return state.setIn(["links", "isLoading"], false);
default:
return state;
}
}