Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
fix prettier format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
noxify committed Dec 14, 2023
1 parent 4f4ba0e commit 1cebb50
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/helpers/src/cn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { clsx, type ClassValue } from "clsx"
import type { ClassValue } from "clsx"
import { clsx } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
Expand Down
5 changes: 3 additions & 2 deletions packages/markdoc-base/src/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { PathLike } from "node:fs"
import fs from "node:fs/promises"
import Markdoc, { type Node as MarkdocNode, type Tag } from "@markdoc/markdoc"
import type { Node as MarkdocNode, Tag } from "@markdoc/markdoc"
import type { PathLike } from "node:fs"
import Markdoc from "@markdoc/markdoc"
import { stripHtml } from "string-strip-html"

import { getFrontmatter } from "./frontmatter"
Expand Down
3 changes: 2 additions & 1 deletion packages/markdoc-heading/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Markdoc, { Tag, type Schema } from "@markdoc/markdoc"
import type { Schema } from "@markdoc/markdoc"
import Markdoc, { Tag } from "@markdoc/markdoc"
import { slugifyWithCounter } from "@sindresorhus/slugify"

const slugify = slugifyWithCounter()
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/table-of-contents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"use client"

import * as React from "react"
import type { TableOfContents } from "@acme/markdoc-base"

import { cn } from "@acme/helpers"
import type { TableOfContents } from "@acme/markdoc-base"

interface TocProps {
toc: TableOfContents[]
Expand Down
2 changes: 2 additions & 0 deletions tooling/prettier/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const config = {
"^(react/(.*)$)|^(react$)|^(react-native(.*)$)",
"^(next/(.*)$)|^(next$)",
"^(expo(.*)$)|^(expo$)",
"<TYPES>",
"<TYPES>^[.]",
"<THIRD_PARTY_MODULES>",
"",
"^@acme/(.*)$",
Expand Down

0 comments on commit 1cebb50

Please sign in to comment.