chore: moves collections folders property to the top level (#12508)

This commit is contained in:
Jarrod Flesch
2025-05-22 16:01:33 -04:00
committed by GitHub
parent f75d62c79b
commit d83b2bf3fa
17 changed files with 37 additions and 63 deletions

View File

@@ -4,8 +4,8 @@ export const Autosave: CollectionConfig = {
slug: 'autosave',
admin: {
useAsTitle: 'title',
folders: true,
},
folders: true,
fields: [
{
name: 'title',

View File

@@ -4,8 +4,8 @@ export const Drafts: CollectionConfig = {
slug: 'drafts',
admin: {
useAsTitle: 'title',
folders: true,
},
folders: true,
fields: [
{
name: 'title',

View File

@@ -3,8 +3,6 @@ import type { CollectionConfig } from 'payload'
export const Media: CollectionConfig = {
slug: 'media',
upload: true,
admin: {
folders: true,
},
folders: true,
fields: [],
}

View File

@@ -6,8 +6,8 @@ export const Posts: CollectionConfig = {
slug: postSlug,
admin: {
useAsTitle: 'title',
folders: true,
},
folders: true,
fields: [
{
name: 'title',

View File

@@ -1,19 +0,0 @@
import { rootParserOptions } from '../../eslint.config.js'
import testEslintConfig from '../eslint.config.js'
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {Config[]} */
export const index = [
...testEslintConfig,
{
languageOptions: {
parserOptions: {
...rootParserOptions,
tsconfigRootDir: import.meta.dirname,
},
},
},
]
export default index