docs: update to next 15 + eslint 9 (#9839)

* update next

* updated react

* update eslint

* finish updating eslint

* fix content lint errors

* fix docs test

* fix vale action

* fix installation errors
This commit is contained in:
Shahed Nasser
2024-11-13 17:03:17 +02:00
committed by GitHub
parent 6f7467f071
commit 938f3bd934
143 changed files with 4193 additions and 3226 deletions

View File

@@ -94,8 +94,8 @@ const TagOperationParametersObject = ({
properties[property2].isRequired
? 0
: properties[property1].isRequired
? -1
: 1
? -1
: 1
}
)
const content = (

View File

@@ -36,8 +36,8 @@ const TagOperationParametersUnion = ({
const objectSchema = schema.anyOf
? schema.anyOf.find((item) => item.type === "object" && item.properties)
: schema.allOf
? mergeAllOfTypes(schema)
: undefined
? mergeAllOfTypes(schema)
: undefined
if (!objectSchema) {
return (

View File

@@ -116,6 +116,7 @@ const TagSectionSchema = ({ schema, tagName }: TagSectionSchemaProps) => {
return (
<Suspense>
<InView
// @ts-expect-error Type is being read as undefined
as="div"
id={schemaSlug}
initialInView={true}

View File

@@ -14,9 +14,7 @@ type TagsProps = {
const Tags = ({ tags }: TagsProps) => {
return (
<Suspense>
{tags?.map((tag) => (
<TagSection tag={tag} key={tag.name} />
))}
{tags?.map((tag) => <TagSection tag={tag} key={tag.name} />)}
</Suspense>
)
}