chore(plugin-nested-docs): lint fix (#3740)
This commit is contained in:
@@ -28,6 +28,12 @@ module.exports = {
|
||||
'perfectionist/sort-vue-attributes': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.ts'],
|
||||
rules: {
|
||||
'perfectionist/sort-objects': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
parserOptions: {
|
||||
project: ['./tsconfig.json'],
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
extends: ['@payloadcms'],
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RelationshipField } from 'payload/types'
|
||||
import type { RelationshipField } from 'payload/types'
|
||||
|
||||
const createParentField = (
|
||||
relationTo: string,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { CollectionAfterChangeHook, CollectionConfig } from 'payload/types'
|
||||
|
||||
import type { PluginConfig } from '../types'
|
||||
|
||||
import populateBreadcrumbs from '../utilities/populateBreadcrumbs'
|
||||
|
||||
const resaveChildren =
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import type { Plugin } from 'payload/config'
|
||||
|
||||
import type { PluginConfig } from './types'
|
||||
|
||||
import createBreadcrumbsField from './fields/breadcrumbs'
|
||||
import createParentField from './fields/parent'
|
||||
import resaveChildren from './hooks/resaveChildren'
|
||||
import resaveSelfAfterCreate from './hooks/resaveSelfAfterCreate'
|
||||
import type { PluginConfig } from './types'
|
||||
import populateBreadcrumbs from './utilities/populateBreadcrumbs'
|
||||
|
||||
const nestedDocs =
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export interface Breadcrumb {
|
||||
url?: string
|
||||
label: string
|
||||
doc: string
|
||||
label: string
|
||||
url?: string
|
||||
}
|
||||
|
||||
export type GenerateURL = (
|
||||
@@ -15,9 +15,9 @@ export type GenerateLabel = (
|
||||
) => string
|
||||
|
||||
export interface PluginConfig {
|
||||
collections: string[]
|
||||
generateURL?: GenerateURL
|
||||
generateLabel?: GenerateLabel
|
||||
parentFieldSlug?: string
|
||||
breadcrumbsFieldSlug?: string
|
||||
collections: string[]
|
||||
generateLabel?: GenerateLabel
|
||||
generateURL?: GenerateURL
|
||||
parentFieldSlug?: string
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { CollectionConfig } from 'payload/types'
|
||||
|
||||
import type { PluginConfig } from '../types'
|
||||
|
||||
import formatBreadcrumb from './formatBreadcrumb'
|
||||
import getParents from './getParents'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user