chore: run lint and prettier on entire codebase

This commit is contained in:
Alessio Gravili
2024-07-11 15:27:01 -04:00
parent f8ab5a9f1e
commit 83fd4c6622
364 changed files with 2578 additions and 2658 deletions

View File

@@ -3,8 +3,8 @@ import type { CollectionConfig, Field } from 'payload/types'
import { disabledSlug } from '../../shared.js'
const disabledFromUpdateAccessControl = (fieldName = 'text'): Field => ({
type: 'text',
name: fieldName,
type: 'text',
access: {
update: () => {
return false
@@ -16,8 +16,8 @@ export const Disabled: CollectionConfig = {
slug: disabledSlug,
fields: [
{
type: 'group',
name: 'group',
type: 'group',
fields: [disabledFromUpdateAccessControl()],
},
{
@@ -28,14 +28,14 @@ export const Disabled: CollectionConfig = {
fields: [disabledFromUpdateAccessControl()],
},
{
label: 'unnamedTab',
fields: [disabledFromUpdateAccessControl('unnamedTab')],
label: 'unnamedTab',
},
],
},
{
type: 'array',
name: 'array',
type: 'array',
fields: [disabledFromUpdateAccessControl()],
},
],