chore: significantly improve eslint performance, lint and prettier everything

This commit is contained in:
Alessio Gravili
2024-08-29 21:25:50 -04:00
parent bc367ab73c
commit 86fdad0bb8
653 changed files with 50289 additions and 19143 deletions

View File

@@ -9,12 +9,8 @@ export const index = [
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['./src/*.ts', './src/*.tsx'],
defaultProject: './tsconfig.json',
},
tsconfigDirName: import.meta.dirname,
...rootParserOptions,
tsconfigRootDir: import.meta.dirname,
},
},
},

View File

@@ -1,9 +1,9 @@
'use client'
export { RichTextCell } from '../../cell/index.js'
export { ElementButton } from '../../field/elements/Button.js'
export { BlockquoteElementButton } from '../../field/elements/blockquote/Button.js'
export { BlockquoteElement } from '../../field/elements/blockquote/Element.js'
export { ElementButton } from '../../field/elements/Button.js'
export { H1ElementButton } from '../../field/elements/h1/Button.js'
export { Heading1Element } from '../../field/elements/h1/Heading1.js'
export { H2ElementButton } from '../../field/elements/h2/Button.js'
@@ -44,11 +44,11 @@ export { UploadElementButton } from '../../field/elements/upload/Button/index.js
export { UploadElement } from '../../field/elements/upload/Element/index.js'
export { WithUpload } from '../../field/elements/upload/plugin.js'
export { RichTextField } from '../../field/index.js'
export { LeafButton } from '../../field/leaves/Button.js'
export { BoldLeaf } from '../../field/leaves/bold/Bold/index.js'
export { BoldLeafButton } from '../../field/leaves/bold/LeafButton.js'
export { LeafButton } from '../../field/leaves/Button.js'
export { CodeLeaf } from '../../field/leaves/code/Code/index.js'
export { CodeLeafButton } from '../../field/leaves/code/LeafButton.js'

View File

@@ -19,7 +19,7 @@ import {
} from '@payloadcms/ui'
import { isHotkey } from 'is-hotkey'
import React, { useCallback, useEffect, useMemo, useRef } from 'react'
import { Node, Element as SlateElement, Text, Transforms, createEditor } from 'slate'
import { createEditor, Node, Element as SlateElement, Text, Transforms } from 'slate'
import { withHistory } from 'slate-history'
import { Editable, Slate, withReact } from 'slate-react'

View File

@@ -23,8 +23,8 @@ import type { UploadElementType } from '../types.js'
import { useElement } from '../../../providers/ElementProvider.js'
import { EnabledRelationshipsCondition } from '../../EnabledRelationshipsCondition.js'
import { uploadFieldsSchemaPath, uploadName } from '../shared.js'
import { UploadDrawer } from './UploadDrawer/index.js'
import './index.scss'
import { UploadDrawer } from './UploadDrawer/index.js'
const baseClass = 'rich-text-upload'

View File

@@ -1,7 +1,7 @@
'use client'
import { RenderComponent, ShimmerEffect, useClientFunctions, useFieldProps } from '@payloadcms/ui'
import React, { Suspense, lazy, useEffect, useState } from 'react'
import React, { lazy, Suspense, useEffect, useState } from 'react'
import type { RichTextPlugin, SlateFieldProps } from '../types.js'
import type { EnabledFeatures } from './types.js'