Skip to content

Commit c127288

Browse files
authored
lint and format (#996)
1 parent 9343fdd commit c127288

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

packages/components/src/templates/next/components/internal/CollectionCard/CollectionCard.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react"
33
import { withChromaticModes } from "@isomer/storybook-config"
44

55
import type { CollectionCardProps } from "~/interfaces"
6-
import { Tag } from "~/interfaces/internal/CollectionCard"
6+
import type { Tag } from "~/interfaces/internal/CollectionCard"
77
import { CollectionCard } from "./CollectionCard"
88

99
const meta: Meta<typeof CollectionCard> = {

packages/components/src/templates/next/components/internal/Tag/Tag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PropsWithChildren } from "react"
1+
import type { PropsWithChildren } from "react"
22

33
export const Tag = (
44
props: PropsWithChildren<

packages/components/src/templates/next/render/renderComponentPreviewText.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function getTextContentOfProse(content: ProseContent): string {
88
function recursiveSearch(
99
content: ProseContent | OrderedListProps["content"],
1010
) {
11-
content?.map((contentBlock) => {
11+
content.map((contentBlock) => {
1212
switch (contentBlock.type) {
1313
case "heading":
1414
values.push(

packages/components/src/types/page.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import type { Static } from "@sinclair/typebox"
22
import { Type } from "@sinclair/typebox"
3-
import { Collection } from "react-aria-components"
43

4+
import type { CollectionVariant } from "./variants"
55
import {
66
ArticlePageHeaderSchema,
77
ContentPageHeaderSchema,
88
SearchableTableSchema,
99
} from "~/interfaces"
1010
import { AltTextSchema, generateImageSrcSchema } from "~/interfaces/complex"
1111
import { REF_HREF_PATTERN } from "~/utils/validation"
12-
import { CollectionVariant, CollectionVariantSchema } from "./variants"
1312

1413
const categorySchemaObject = Type.Object({
1514
category: Type.String({

packages/components/src/types/variants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Static, Type } from "@sinclair/typebox"
1+
import type { Static } from "@sinclair/typebox"
2+
import { Type } from "@sinclair/typebox"
23

34
export const CollectionVariantSchema = Type.Union([
45
Type.Literal("blog"),

0 commit comments

Comments
 (0)