Skip to content

Commit

Permalink
mod lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterStorey committed Oct 3, 2024
1 parent c4d37ce commit 5867d99
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/(lab-blog)/providers.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ThemeProvider } from 'next-themes'
import { Toolbar } from 'basehub/next-toolbar'
import { ThemeProvider } from 'next-themes'

import { BaseHubThemeProvider } from '@/context/basehub-theme-provider'
import { TooltipProvider } from '@/common/tooltip'
import { BaseHubThemeProvider } from '@/context/basehub-theme-provider'

export function Providers({ children }: { children: React.ReactNode }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion common/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cva, type VariantProps } from 'class-variance-authority'
import { type VariantProps, cva } from 'class-variance-authority'

export const $section = cva('py-14 md:py-[72px] flex flex-col items-center gap-10 relative', {
variants: {
Expand Down
2 changes: 1 addition & 1 deletion common/ui/button.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import cn from '@/lib/utils/cn'
import { Slot } from '@radix-ui/react-slot'
import { cva, type VariantProps } from 'class-variance-authority'
import { type VariantProps, cva } from 'class-variance-authority'
import * as React from 'react'

const buttonVariants = cva(
Expand Down
2 changes: 1 addition & 1 deletion common/ui/tag.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cva, type VariantProps } from 'class-variance-authority'
import { type VariantProps, cva } from 'class-variance-authority'
import { forwardRef } from 'react'

export const $tag = cva('flex border focus-ring transition-colors-shadow', {
Expand Down
4 changes: 2 additions & 2 deletions hooks/use-measure.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import useMeasurePrimitive, { type Options } from 'react-use-measure'
import { ResizeObserver } from '@juggle/resize-observer'
import { RESIZE_DEBOUNCE } from '@/lib/utils/constants'
import { ResizeObserver } from '@juggle/resize-observer'
import useMeasurePrimitive, { type Options } from 'react-use-measure'

export const useMeasure = (config?: Options) =>
useMeasurePrimitive({ debounce: RESIZE_DEBOUNCE, polyfill: ResizeObserver, ...config })
Expand Down
2 changes: 1 addition & 1 deletion hooks/use-window-size.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react'
import { RESIZE_DEBOUNCE } from '@/lib/utils/constants'
import debounce from 'debounce'
import { useEffect, useState } from 'react'

interface WindowSize {
width: number | undefined
Expand Down
4 changes: 2 additions & 2 deletions lib/basehub/fragments/blog.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { codeSnippetFragment } from '@/components/code-snippet'
import { FaqItemComponentFragment, richTextCalloutComponentFragment } from '@/components/rich-text'
import { fragmentOn } from 'basehub'
import { authorFragment, darkLightImageFragment } from '../fragments'
import { FaqItemComponentFragment, richTextCalloutComponentFragment } from '@/components/rich-text'
import { codeSnippetFragment } from '@/components/code-snippet'

export const blogpostCardFragment = fragmentOn('BlogPostComponent', {
_id: true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"start": "next start",
"bleed": "bun x npm-check-updates -u && bun i",
"format": "bun x biome format --write .",
"lint": "bun x biome check .",
"lint:fix": "bun x biome lint . --write --unsafe",
"lint": "bun x biome check . && bun x biome lint .",
"lint:fix": "bun x biome check --fix --unsafe . && bun x biome lint --write --unsafe .",
"clean": "rm -rf .next && rm -rf node_modules"
},
"version": "0.0.0"
Expand Down

0 comments on commit 5867d99

Please sign in to comment.