chore: moves collections folders property to the top level (#12508)
This commit is contained in:
@@ -4,8 +4,8 @@ export const Autosave: CollectionConfig = {
|
||||
slug: 'autosave',
|
||||
admin: {
|
||||
useAsTitle: 'title',
|
||||
folders: true,
|
||||
},
|
||||
folders: true,
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
|
||||
@@ -4,8 +4,8 @@ export const Drafts: CollectionConfig = {
|
||||
slug: 'drafts',
|
||||
admin: {
|
||||
useAsTitle: 'title',
|
||||
folders: true,
|
||||
},
|
||||
folders: true,
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
|
||||
@@ -3,8 +3,6 @@ import type { CollectionConfig } from 'payload'
|
||||
export const Media: CollectionConfig = {
|
||||
slug: 'media',
|
||||
upload: true,
|
||||
admin: {
|
||||
folders: true,
|
||||
},
|
||||
folders: true,
|
||||
fields: [],
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ export const Posts: CollectionConfig = {
|
||||
slug: postSlug,
|
||||
admin: {
|
||||
useAsTitle: 'title',
|
||||
folders: true,
|
||||
},
|
||||
folders: true,
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user