chore(plugin-nested-docs): lint fix (#3740)

This commit is contained in:
Elliot DeNolf
2023-10-18 14:40:48 -04:00
committed by GitHub
parent f1d8fa9999
commit 4c938b5f9e
7 changed files with 17 additions and 11 deletions

View File

@@ -28,6 +28,12 @@ module.exports = {
'perfectionist/sort-vue-attributes': 'off',
},
},
{
files: ['**/*.ts'],
rules: {
'perfectionist/sort-objects': 'off',
},
},
],
parserOptions: {
project: ['./tsconfig.json'],

View File

@@ -1,3 +0,0 @@
module.exports = {
extends: ['@payloadcms'],
}

View File

@@ -1,4 +1,4 @@
import { RelationshipField } from 'payload/types'
import type { RelationshipField } from 'payload/types'
const createParentField = (
relationTo: string,

View File

@@ -1,6 +1,7 @@
import type { CollectionAfterChangeHook, CollectionConfig } from 'payload/types'
import type { PluginConfig } from '../types'
import populateBreadcrumbs from '../utilities/populateBreadcrumbs'
const resaveChildren =

View File

@@ -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 =

View File

@@ -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
}

View File

@@ -1,6 +1,7 @@
import type { CollectionConfig } from 'payload/types'
import type { PluginConfig } from '../types'
import formatBreadcrumb from './formatBreadcrumb'
import getParents from './getParents'