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:
@@ -26,11 +26,11 @@ export function AddingFilesView() {
|
||||
activeIndex,
|
||||
collectionSlug,
|
||||
docPermissions,
|
||||
documentSlots,
|
||||
forms,
|
||||
hasPublishPermission,
|
||||
hasSavePermission,
|
||||
hasSubmitted,
|
||||
documentSlots,
|
||||
} = useFormsManager()
|
||||
const activeForm = forms[activeIndex]
|
||||
const { getEntityConfig } = useConfig()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user