chore: bump all eslint dependencies, run lint and prettier (#9128)

This fixes a peer dependency error in our monorepo, as
eslint-plugin-jsx-a11y finally supports eslint v9.

Additionally, this officially adds TypeScript 5.6 support for
typescript-eslint.
This commit is contained in:
Alessio Gravili
2024-11-12 08:18:22 -07:00
committed by GitHub
parent 3298113a93
commit 03291472d6
64 changed files with 2649 additions and 2810 deletions

View File

@@ -26,11 +26,11 @@ export function AddingFilesView() {
activeIndex,
collectionSlug,
docPermissions,
documentSlots,
forms,
hasPublishPermission,
hasSavePermission,
hasSubmitted,
documentSlots,
} = useFormsManager()
const activeForm = forms[activeIndex]
const { getEntityConfig } = useConfig()

View File

@@ -35,18 +35,6 @@ type Action =
export function formsManagementReducer(state: State, action: Action): State {
switch (action.type) {
case 'REPLACE': {
return {
...state,
...action.state,
}
}
case 'SET_ACTIVE_INDEX': {
return {
...state,
activeIndex: action.index,
}
}
case 'ADD_FORMS': {
const newForms: State['forms'] = []
for (let i = 0; i < action.files.length; i++) {
@@ -89,6 +77,18 @@ export function formsManagementReducer(state: State, action: Action): State {
totalErrorCount: state.totalErrorCount - removedForm.errorCount,
}
}
case 'REPLACE': {
return {
...state,
...action.state,
}
}
case 'SET_ACTIVE_INDEX': {
return {
...state,
activeIndex: action.index,
}
}
case 'UPDATE_ERROR_COUNT': {
const forms = [...state.forms]
forms[action.index].errorCount = action.count